-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (44 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
44
45
46
name: "Build and Run tests"
on:
workflow_call:
inputs:
test_profile:
type: string
required: true
secrets:
SONAR_TOKEN:
required: true
jobs:
test:
name: "Test and push Sonar analysis"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: actions/setup-node@v4
with:
node-version: "16"
cache: "npm"
cache-dependency-path: "package.json"
- run: npm install
- uses: actions/download-artifact@v4
with:
name: build-folder
path: build
- run: npm run test:prepare
- uses: cypress-io/github-action@v5
with:
start: npm run serve:build
command: npm run test:run
browser: chrome
wait-on: 'http://localhost:4000/test-app/'
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-report
path: |
cypress/reports/assets
cypress/reports/*.html
cypress/screenshots
cypress/videos