-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 952 Bytes
/
app-validate.yml
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
name: Static analysis, test and build
on:
workflow_dispatch:
pull_request:
paths:
- '*.json'
- 'packages/app/**'
push:
paths:
- '*.json'
- 'packages/app/**'
jobs:
Validate:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.tool-versions'
cache: npm
- name: Install dependencies
run: npm ci
- name: Static analysis (ESLint)
run: npm run lint -w=app
- name: Check types (tsc)
run: npm run check-types -w=app
- name: Unit tests
run: npm test -w=app
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
- name: Build
run: npm run build -w=app