2023-05-12 03:21:28 +02:00
|
|
|
name: e2e-tests
|
|
|
|
|
2023-05-16 10:53:18 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
2023-05-12 03:21:28 +02:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
2023-05-25 09:33:31 +08:00
|
|
|
files-changed:
|
|
|
|
uses: ./.github/workflows/files-changed.yml
|
|
|
|
|
2023-05-12 03:21:28 +02:00
|
|
|
test-e2e:
|
2023-06-14 17:30:37 +02:00
|
|
|
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.frontend == 'true' || needs.files-changed.outputs.actions == 'true'
|
2023-05-25 09:33:31 +08:00
|
|
|
needs: files-changed
|
2023-05-12 03:21:28 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-16 20:36:27 +05:30
|
|
|
- uses: actions/checkout@v4
|
2023-12-21 00:31:04 -05:00
|
|
|
- uses: actions/setup-go@v5
|
2023-05-12 03:21:28 +02:00
|
|
|
with:
|
2023-10-17 13:24:54 +03:00
|
|
|
go-version-file: go.mod
|
2023-05-12 03:21:28 +02:00
|
|
|
check-latest: true
|
2023-10-30 03:56:43 -04:00
|
|
|
- uses: actions/setup-node@v4
|
2023-05-12 03:21:28 +02:00
|
|
|
with:
|
2024-11-13 22:39:55 +01:00
|
|
|
node-version: 22
|
2024-04-19 05:29:08 +02:00
|
|
|
cache: npm
|
|
|
|
cache-dependency-path: package-lock.json
|
2023-05-12 03:21:28 +02:00
|
|
|
- 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
|