-
Notifications
You must be signed in to change notification settings - Fork 84
43 lines (36 loc) · 1.1 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
name: Test Runner
on:
push:
branches: [main, dev/*, hotfix/*]
pull_request:
branches: [main, dev/*, hotfix/*]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 19.x]
steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
- name: Set up Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npx nx affected --target=lint --parallel
- run: npx nx affected --target=build
- run: npx nx affected --target=test --parallel
- run: npx nx e2e designer-e2e --reporter=html
- run: npx nx e2e data-mapper-e2e --reporter=html
- uses: actions/upload-artifact@v2
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30