run-e2e #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run-e2e | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
schedule: | |
- cron: 0 0 * * 0 | |
workflow_dispatch: | |
jobs: | |
run-e2e: | |
name: Run E2E tests. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup | |
- name: Set proxy certificates | |
run: mkdir ssl && openssl req -x509 -newkey rsa:4096 -keyout ssl/localhost.key.pem -out ssl/localhost.cert.pem -sha256 -days 3650 -nodes -subj "/CN=Dev proxy certificate" | |
working-directory: ./packages/backend/tools/backend-dev-proxy | |
- name: Start services with e2e config | |
run: pnpm run start:e2e | |
- name: Run e2e tests | |
run: pnpm run test:e2e:js | |
env: | |
ONE_JS_GAME_SERVICE_DOT_ENV_PATH: e2e.env | |
ONE_JS_TEST_E2E_DOT_ENV_PATH: e2e.env | |
- name: Remove services with e2e config | |
run: pnpm run close:e2e |