ci: wire Clerk env vars into frontend CI steps
This commit is contained in:
38
.github/workflows/ci.yml
vendored
38
.github/workflows/ci.yml
vendored
@@ -45,11 +45,41 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: frontend/package-lock.json
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install backend dependencies
|
||||||
run: make setup
|
run: make backend-sync
|
||||||
|
|
||||||
- name: Run checks
|
- name: Install frontend dependencies
|
||||||
|
run: make frontend-sync
|
||||||
|
|
||||||
|
- name: Run backend checks
|
||||||
env:
|
env:
|
||||||
# Keep CI builds deterministic and secretless.
|
# Keep CI builds deterministic and secretless.
|
||||||
NEXT_TELEMETRY_DISABLED: "1"
|
NEXT_TELEMETRY_DISABLED: "1"
|
||||||
run: make check
|
run: |
|
||||||
|
make backend-lint
|
||||||
|
make backend-typecheck
|
||||||
|
make backend-coverage
|
||||||
|
|
||||||
|
- name: Run frontend checks
|
||||||
|
env:
|
||||||
|
# Keep CI builds deterministic.
|
||||||
|
NEXT_TELEMETRY_DISABLED: "1"
|
||||||
|
# Clerk env (wired from repo settings; values are not printed).
|
||||||
|
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
|
||||||
|
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ vars.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
|
||||||
|
CLERK_JWKS_URL: ${{ vars.CLERK_JWKS_URL }}
|
||||||
|
run: |
|
||||||
|
make frontend-lint
|
||||||
|
make frontend-typecheck
|
||||||
|
make frontend-test
|
||||||
|
make frontend-build
|
||||||
|
|
||||||
|
- name: Upload coverage artifacts
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: coverage
|
||||||
|
if-no-files-found: ignore
|
||||||
|
path: |
|
||||||
|
backend/coverage.xml
|
||||||
|
frontend/coverage/**
|
||||||
|
|||||||
Reference in New Issue
Block a user