2021-09-02 16:41:15 +00:00
|
|
|
name: E2E test
|
2022-01-13 18:09:37 +00:00
|
|
|
on:
|
2023-01-12 23:01:33 +00:00
|
|
|
workflow_call:
|
2021-09-02 16:41:15 +00:00
|
|
|
jobs:
|
2022-07-04 21:27:22 +00:00
|
|
|
e2e:
|
2022-05-05 21:16:25 +00:00
|
|
|
timeout-minutes: 20
|
2023-02-02 08:42:28 +00:00
|
|
|
runs-on: buildjet-4vcpu-ubuntu-2204
|
2021-09-02 16:41:15 +00:00
|
|
|
services:
|
|
|
|
postgres:
|
2022-12-23 00:11:31 +00:00
|
|
|
image: postgres:12.1
|
2021-09-02 16:41:15 +00:00
|
|
|
env:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_DB: calendso
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
steps:
|
2023-02-22 00:10:39 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: ./.github/actions/dangerous-git-checkout
|
2022-06-13 21:16:58 +00:00
|
|
|
- run: echo 'NODE_OPTIONS="--max_old_space_size=4096"' >> $GITHUB_ENV
|
2023-02-22 00:10:39 +00:00
|
|
|
- uses: ./.github/actions/yarn-install
|
|
|
|
- uses: ./.github/actions/yarn-playwright-install
|
|
|
|
- uses: ./.github/actions/cache-db
|
2023-02-25 02:23:11 +00:00
|
|
|
- uses: ./.github/actions/env-read-file
|
2023-02-22 00:10:39 +00:00
|
|
|
- uses: ./.github/actions/cache-build
|
2022-02-15 17:44:30 +00:00
|
|
|
- run: yarn test-e2e
|
2022-05-18 03:24:47 +00:00
|
|
|
- name: Upload test results
|
2021-09-02 16:41:15 +00:00
|
|
|
if: ${{ always() }}
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2022-05-18 04:05:24 +00:00
|
|
|
name: test-results
|
2022-05-18 16:54:36 +00:00
|
|
|
path: test-results
|