mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Freestyle E2E tests on GH Actions
This commit is contained in:
parent
a3137d2210
commit
1c74c497c6
7
.github/workflows/e2e-api-tests.yaml
vendored
7
.github/workflows/e2e-api-tests.yaml
vendored
@ -13,6 +13,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }})
|
||||
runs-on: ubicloud-standard-8
|
||||
env:
|
||||
NODE_ENV: test
|
||||
@ -22,6 +23,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [22.x]
|
||||
freestyle-mode: [mock, prod]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@ -52,6 +54,11 @@ jobs:
|
||||
- name: Create .env.test.local file for apps/backend
|
||||
run: cp apps/backend/.env.development apps/backend/.env.test.local
|
||||
|
||||
- name: Override Freestyle API key for prod mode
|
||||
if: matrix.freestyle-mode == 'prod'
|
||||
run: |
|
||||
echo "STACK_FREESTYLE_API_KEY=${{ secrets.STACK_FREESTYLE_REAL_API_KEY }}" >> apps/backend/.env.test.local
|
||||
|
||||
- name: Create .env.test.local file for apps/dashboard
|
||||
run: cp apps/dashboard/.env.development apps/dashboard/.env.test.local
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user