Skip to content

first stab at migrating to TypeScript #22

first stab at migrating to TypeScript

first stab at migrating to TypeScript #22

Workflow file for this run

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