Skip to content

fix bug with no lookahead line #35

fix bug with no lookahead line

fix bug with no lookahead line #35

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
if: ${{ !startsWith(github.head_ref, 'update-snapshots/') }}
run: npm run test:e2e
- name: Run Playwright tests and update snapshots
if: ${{ startsWith(github.head_ref, 'update-snapshots/') }}
run: npm run update-snapshots
- name: Commit new snapshots
uses: EndBug/add-and-commit@v9
if: ${{ success() && github.event_name == 'pull_request' }}
with:
add: 'test/snapshots'
default_author: github_actions
message: 'Update snapshots'
push: origin ${{ github.head_ref }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30