Merge pull request #1341 from danielpeintner/docs-test-2024-12 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docs https://playwright.dev/docs/ci-intro#setting-up-github-actions | |
name: Browser Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "npm" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Install linux rollup optional dependencies | |
run: npm i @rollup/rollup-linux-x64-gnu -D | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Build | |
run: npm run build | |
- name: Test with browser bundle | |
timeout-minutes: 2 | |
run: | | |
npm run test:browser |