mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
97 lines
2.9 KiB
YAML
97 lines
2.9 KiB
YAML
name: E2E Tests
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
env:
|
|
GITHUB_PR_NUMBER: ${{github.event.pull_request.number}}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
netlify:
|
|
name: Wait for Netlify build to finish
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
netlify_url: ${{ steps.netlify.outputs.url }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Wait for Netlify build to finish
|
|
id: netlify
|
|
env:
|
|
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: ./.github/actions/netlify-wait-for-build
|
|
|
|
functional:
|
|
name: Functional
|
|
needs: netlify
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: mcr.microsoft.com/playwright:v1.56.0-jammy
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Trust the repository directory
|
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
- name: Run E2E Tests on Netlify URL
|
|
run: yarn e2e
|
|
env:
|
|
E2E_START_URL: ${{ needs.netlify.outputs.netlify_url }}
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: desktop-client-test-results
|
|
path: packages/desktop-client/test-results/
|
|
retention-days: 30
|
|
overwrite: true
|
|
|
|
functional-desktop-app:
|
|
name: Functional Desktop App
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: mcr.microsoft.com/playwright:v1.56.0-jammy
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Trust the repository directory
|
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
- name: Run Desktop app E2E Tests
|
|
run: |
|
|
xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" -- yarn e2e:desktop
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: desktop-app-test-results
|
|
path: packages/desktop-electron/e2e/test-results/
|
|
retention-days: 30
|
|
overwrite: true
|
|
|
|
vrt:
|
|
name: Visual regression
|
|
needs: netlify
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: mcr.microsoft.com/playwright:v1.56.0-jammy
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up environment
|
|
uses: ./.github/actions/setup
|
|
- name: Run VRT Tests on Netlify URL
|
|
run: yarn vrt
|
|
env:
|
|
E2E_START_URL: ${{ needs.netlify.outputs.netlify_url }}
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: desktop-client-test-results
|
|
path: packages/desktop-client/test-results/
|
|
retention-days: 30
|
|
overwrite: true
|