2023-05-04 05:04:02 +03:00
|
|
|
name: "Pull: E2E Tests"
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
2023-05-05 01:21:48 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-05-04 05:04:02 +03:00
|
|
|
jobs:
|
|
|
|
e2e_tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: setup go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: '>=1.20'
|
2023-05-06 10:43:56 +03:00
|
|
|
check-latest: true
|
2023-05-04 05:04:02 +03:00
|
|
|
- name: setup node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-05-05 01:21:48 +03:00
|
|
|
node-version: 20
|
2023-05-04 05:04:02 +03:00
|
|
|
- name: build
|
|
|
|
run: make deps-frontend frontend deps-backend
|
|
|
|
- name: Install playwright browsers
|
|
|
|
run: npx playwright install --with-deps
|
|
|
|
- name: run tests
|
|
|
|
run: timeout -s ABRT 40m make test-e2e-sqlite
|
|
|
|
env:
|
|
|
|
GOPROXY: https://goproxy.io
|
|
|
|
GOSUMDB: sum.golang.org
|
|
|
|
USE_REPO_TEST_DIR: 1
|