Skip to content

chore: replace peaceiris/actions-gh-pages and dorny/paths-filter with native git/shell #156

chore: replace peaceiris/actions-gh-pages and dorny/paths-filter with native git/shell

chore: replace peaceiris/actions-gh-pages and dorny/paths-filter with native git/shell #156

Workflow file for this run

name: E2E Tests
on:
push:
branches:
- main
pull_request:
merge_group:
permissions:
contents: read
jobs:
changes:
uses: ./.github/workflows/detect-changes.yml
with:
event_name: ${{ github.event_name }}
test-e2e:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Build generated files
run: npm run build
- name: Run E2E tests
run: npm run test:e2e
e2e-test-status:
needs: [changes, test-e2e]
if: always()
runs-on: ubuntu-latest
steps:
- name: Report status
run: |
if [[ "${{ needs.test-e2e.result }}" == "failure" ]]; then
echo "E2E tests failed"
exit 1
fi
echo "E2E tests passed or were skipped (no relevant files changed)"