Skip to content

Commit

Permalink
Introduce separate CI task for sites
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Jan 27, 2024
1 parent 457de45 commit 0a17c0c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run site tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '42 23 * * 6'
jobs:
test:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Running lint and type check
run: npm run lint && npm run check-types
- name: Build
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test-sites
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build": "rollup --bundleConfigAsCjs -c",
"lint": "eslint src tests",
"check-types": "tsc --noemit",
"test-sites": "npx playwright test tests/sites.spec.ts --project=chromium --reporter list",
"test": "npx playwright test",
"version": "gsed -i '4s/\"version\": \".*\",/\"version\": \"'\"$(jq -r .version package.json)\"'\",/' manifest.json && git add manifest.json"
},
Expand Down
File renamed without changes.

0 comments on commit 0a17c0c

Please sign in to comment.