-
-
Notifications
You must be signed in to change notification settings - Fork 367
65 lines (53 loc) · 1.5 KB
/
test-vo.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
name: test-vo
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Runs at 00:00 UTC every day
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-vo:
name: Test VoiceOver
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.npm
website/.next/cache
key: |
test-vo-14-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
test-vo-14-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
run: npm ci --no-audit
- name: Install playwright
run: npx playwright install --with-deps webkit
- name: Build website
run: npm run build-website-lite
- name: Guidepup Setup
uses: guidepup/setup-action@0.15.3
with:
record: true
- name: Test
id: test
run: npm run test-vo
- name: Upload test results to GitHub
if: failure() && steps.test.outcome == 'failure'
uses: actions/upload-artifact@v3
with:
name: test-results
path: |
test-results
recordings
retention-days: 30