-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.67 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: test
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
install-packages: true
- name: Test back end
run: npm test --prefix=app/server
- name: Test front end
run: npm run coverage --prefix=app/static
- name: Check versions
run: npm run genversion --prefix=app/server -- --check-only
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./app/server/coverage/coverage-final.json,./app/static/coverage/coverage-final.json
token: ${{ secrets.CODECOV_TOKEN }} # required
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
build-and-run-server: true
- name: Test back end integration
run: npm run integration-test --prefix=app/server
playwright-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
build-and-run-server: true
- name: Test e2e
run: npm run test:e2e --prefix=app/static
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup-and-login
with:
install-packages: true
- name: Lint back end
run: npm run lint --prefix=app/server
- name: Lint front end
run: npm run lint --prefix=app/static