-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.05 KB
/
run-tests.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
name: Run tests
concurrency:
group: ${{github.ref}}/${{github.workflow}}
cancel-in-progress: true
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
permissions:
actions: read
contents: read
packages: read
env:
BROWSERCAT_API_KEY: ${{secrets.BROWSERCAT_API_KEY}}
jobs:
run-tests:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up PNPM
uses: pnpm/action-setup@v2
with:
version: latest
- name: Set up Node
uses: actions/setup-node@v3
with:
cache: pnpm
node-version-file: .nvmrc
check-latest: true
- name: Install Deps
run: |
pnpm install --frozen-lockfile
- name: Test
run: |
pnpm run test:bcat
- name: Upload Report
uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: .test/spec/results/
retention-days: 30