-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.08 KB
/
test.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
name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install dependencies
run: npm install -g typescript codecov
- name: Build
run: ./scripts/build.sh
- name: Run dependencies
run: ./scripts/run-dependencies.sh
- name: Run server
run: npm run serve --prefix=app/server &
- name: Test back end
run: npm test --prefix=app/server
- name: Test back end integration
run: npm run integration-test --prefix=app/server
- name: Test front end
run: npm run test:unit --prefix=app/static
- name: Lint back end
run: npm run lint --prefix=app/server
- name: Lint front end
run: npm run lint --prefix=app/static
- name: Check versions
run: npm run genversion --prefix=app/server -- --check-only
- name: Upload coverage
run: |
codecov -f app/static/coverage/*.json
codecov -f app/server/coverage/*.json