2023-05-11 20:21:28 -05:00
|
|
|
name: e2e-tests
|
|
|
|
|
2023-05-15 21:53:18 -05:00
|
|
|
on:
|
|
|
|
pull_request:
|
2023-05-11 20:21:28 -05:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2023-05-24 20:33:31 -05:00
|
|
|
files-changed:
|
|
|
|
uses: ./.github/workflows/files-changed.yml
|
|
|
|
|
2023-05-11 20:21:28 -05:00
|
|
|
test-e2e:
|
2023-06-14 10:30:37 -05:00
|
|
|
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.frontend == 'true' || needs.files-changed.outputs.actions == 'true'
|
2023-05-24 20:33:31 -05:00
|
|
|
needs: files-changed
|
2023-05-11 20:21:28 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-go@v4
|
|
|
|
with:
|
2023-08-10 16:53:44 -05:00
|
|
|
go-version: "~1.21"
|
2023-05-11 20:21:28 -05:00
|
|
|
check-latest: true
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
- run: make deps-frontend frontend deps-backend
|
|
|
|
- run: npx playwright install --with-deps
|
|
|
|
- run: make test-e2e-sqlite
|
|
|
|
timeout-minutes: 40
|
|
|
|
env:
|
|
|
|
USE_REPO_TEST_DIR: 1
|