Skip to content

Commit 12a2e8e

Browse files
committed
Add Github Actions checks
1 parent 38e44a3 commit 12a2e8e

3 files changed

Lines changed: 62 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- staging
8+
- develop
9+
10+
jobs:
11+
build:
12+
name: Test Build
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 15
19+
- run: npm ci
20+
- run: npm run build

.github/workflows/linting.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Linting
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- staging
8+
- develop
9+
10+
jobs:
11+
lint:
12+
name: ESLint
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 15
19+
- run: npm ci
20+
- name: ESLint
21+
run: node node_modules/.bin/eslint . --ext .ts

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- staging
8+
- develop
9+
10+
jobs:
11+
unit:
12+
name: Unit
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: 15
19+
- run: npm ci
20+
- name: Tests
21+
run: npm run test

0 commit comments

Comments
 (0)