-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 898 Bytes
/
lint-test.yml
File metadata and controls
48 lines (39 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Lint and test
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- '**'
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
container:
image: node:alpine
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn run lint:ci --max-warnings 1
tests:
needs: [lint]
name: Tests
runs-on: ubuntu-latest
container:
image: node:lts-alpine
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn run test
build:
needs: [lint, tests]
name: Build
runs-on: ubuntu-latest
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
container:
image: node:lts-alpine
steps:
- uses: actions/checkout@v2
- run: yarn
- run: npm install -g typescript@3.8.3
- run: tsc --version
- run: yarn run build