mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
34 lines
976 B
YAML
34 lines
976 B
YAML
name: E2E Tests
|
|
|
|
on: [pull_request]
|
|
|
|
env:
|
|
GITHUB_PR_NUMBER: ${{github.event.pull_request.number}}
|
|
|
|
jobs:
|
|
test:
|
|
name: Run end-to-end tests on Netlify PR preview
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Setup Playwright
|
|
run: npx playwright install chromium --with-deps
|
|
- name: Wait for Netlify build to finish
|
|
id: netlify
|
|
env:
|
|
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: ./bin/netlify-wait-for-build
|
|
- name: Run E2E Tests on Netlify URL
|
|
run: yarn e2e
|
|
env:
|
|
E2E_START_URL: ${{ steps.netlify.outputs.url }}
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: desktop-client-test-results
|
|
path: packages/desktop-client/test-results/
|
|
retention-days: 30
|