Skip to content

Commit b3a6533

Browse files
Added GitHub Action to run tests
1 parent 5fae287 commit b3a6533

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Run all tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Install Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
22+
- name: Clean install the project
23+
run: npm ci
24+
25+
- name: Install Playwright
26+
run: npx playwright install --with-deps
27+
28+
- name: Run Playwright tests
29+
run: npm test
30+
env:
31+
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}
32+
33+
- uses: actions/upload-artifact@v2
34+
if: always()
35+
with:
36+
name: playwright-report
37+
path: playwright-report/
38+
retention-days: 30

0 commit comments

Comments
 (0)