-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (59 loc) · 1.61 KB
/
pr-commit.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
name: Run unit tests
on:
push:
branches-ignore:
- 'main'
jobs:
fp-simulator-jest:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Run unit tests for @kiva/fingerprint-api-simulator
run: |
cd ./fingerprint-api-simulator
npm ci
npm run test
ssirius-react-jest:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Run unit tests for @kiva/ssirius-react
run: |
cd ./react-core
npm ci
npm run test
template-cypress:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Run functional tests for create-ssirius-standalone template
uses: cypress-io/github-action@v3
with:
working-directory: create-ssirius-standalone/template
build: npm run build
start: npm run serve-build
config: baseUrl=http://localhost:5000
wait-on: 'http://localhost:5000'
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: test-artifacts
path: ./create-ssirius-standalone/template/cypress