-
-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (43 loc) · 1.3 KB
/
test-full.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
name: Full tests
on: [ workflow_dispatch ]
jobs:
build:
uses: ./.github/workflows/build.yml
test:
runs-on: windows-latest
needs: [ build ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Download build
uses: actions/download-artifact@v3
with:
name: build
path: dist
- name: Install dependencies
run: npm ci
- name: Load site logins
uses: ChromeKeePass/action-secrets-to-env@main
with:
secrets: ${{ toJSON(secrets) }}
include: ^TESTSITE_.*
- name: Run all tests
run: npm run test:all -- --reporter json --reporter-option output=test-results.json
- name: Test report
uses: ChromeKeePass/action-test-reporting@main
if: success() || failure()
with:
name: Test result
path: test-results.json
reporter: mocha-json
- name: Upload screenshots
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: test-screenshots
path: test/screenshots/
if-no-files-found: ignore