Skip to content

Commit

Permalink
Update nextjs-package-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Fun117 committed Oct 22, 2024
1 parent fedd442 commit fa8981c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/nextjs-package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
test:
runs-on: ubuntu-latest

env:
SCRATCH_AUTH_SECRET_KEY: ${{ secrets.SCRATCH_AUTH_SECRET_KEY }}
NEXT_PUBLIC_REDIRECT_URL: "http://localhost:3000/api/auth"

services:
scratch-auth:
image: scratch-auth/scratch-auth:latest
ports:
- 4000:4000
options: >-
--env SCRATCH_AUTH_SECRET_KEY=${{ env.SCRATCH_AUTH_SECRET_KEY }}
env:
SCRATCH_AUTH_SECRET_KEY: ${{ secrets.SCRATCH_AUTH_SECRET_KEY }}
NEXT_PUBLIC_REDIRECT_URL: "http://localhost:3000/api/auth"
--env SCRATCH_AUTH_SECRET_KEY=${{ secrets.SCRATCH_AUTH_SECRET_KEY }}
steps:
- name: Checkout repository
Expand All @@ -42,9 +42,6 @@ jobs:
working-directory: packages/nextjs
run: npm run build

- name: Set environment variables for Scratch Auth
run: echo "SCRATCH_AUTH_SECRET_KEY=$SCRATCH_AUTH_SECRET_KEY" >> $GITHUB_ENV

- name: Start the Next.js application
working-directory: packages/nextjs
run: npm run dev &
Expand All @@ -67,4 +64,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: nextjs-scratch-auth-test-results
path: packages/nextjs/test-results
path: packages/nextjs/test-results

0 comments on commit fa8981c

Please sign in to comment.