-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (50 loc) · 1.47 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
name: Playwright Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
secrets:
AIRTABLE_TOKEN:
required: true
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
env:
AIRTABLE_PEOPLE_BASE_ID: appk2btw36qEO3vFo
AIRTABLE_RESEARCH_BASE_ID: appTv9J1zxqaNgBHi
AIRTABLE_EVENTS_BASE_ID: tbl6CURONRn8ML6le
AIRTABLE_POSTS_BASE_ID: appsY0VXF7pbv3mKR
AIRTABLE_MITH_BASE_ID: appMWsw8HKjjokBg2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
# - name: Start Gatsby development server
# env:
# AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
# run: |
# npm run develop &
# npx wait-on http://localhost:8000 --timeout 300000
- name: Run Playwright tests
env:
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
run: npx playwright test
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 30