-
-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (42 loc) · 1.17 KB
/
test-basic.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
name: Basic tests
on:
pull_request:
branches: [ dev-v2 ]
push:
branches: [ dev-v2 ]
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: Run standard tests
run: npm test -- --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