-
Notifications
You must be signed in to change notification settings - Fork 9
68 lines (65 loc) · 2.19 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Tests
on: [push]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm run lint
smoke-tests:
name: Smoke Tests
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
# We don't want to fail the whole matrix if one job fails
# Makes it harder to debug what went wrong if it ends early
fail-fast: false
matrix:
include:
- directory: cypress/basic
- directory: cypress/iframes
additional-steps: cd cypress/iframes && node server.js &
- directory: cypress/manual-mode
- directory: cypress/multi-page
- directory: playwright/basic
playwright: true
- directory: playwright/manual-mode
playwright: true
- directory: playwright/typescript-multi-page
playwright: true
- directory: playwright-test/basic
playwright: true
- directory: playwright-test/multi-page
playwright: true
- directory: puppeteer/basic
- directory: puppeteer/typescript-multi-page
- directory: wdio/test-runner/typescript
- directory: wdio/typescript-multi-page
- directory: wdio/v7/typescript-basic
# WDIO v7 does not work on Node > 16. Please refer to `setup.ts` for more information.
node-version: 16
- directory: webdriverjs/basic
- directory: webdriverjs/testing
- directory: webdriverjs/typescript-multi-page
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version || '20' }}
- name: Install Playwright
if: ${{ matrix.playwright }}
run: npx playwright install
- name: Additional steps
if: ${{ matrix.additional-steps }}
run: ${{ matrix.additional-steps }}
- name: Run tests
run: cd ${{ matrix.directory }} && npm install && npm test
env:
API_KEY: ${{ secrets.AXE_DEVHUB_API_KEY }}