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 fa8981c commit 5c85973
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/nextjs-package-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ jobs:
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=${{ secrets.SCRATCH_AUTH_SECRET_KEY }}

steps:
- name: Checkout repository
Expand All @@ -50,6 +47,8 @@ jobs:
run: npx wait-on http://localhost:3000

- name: Run authentication test
env:
SCRATCH_AUTH_SECRET_KEY: ${{ secrets.SCRATCH_AUTH_SECRET_KEY }} # Move secrets here
run: |
curl -X POST http://localhost:3000/api/auth -d "privateCode=test"
echo "Testing authentication successful"
Expand Down

0 comments on commit 5c85973

Please sign in to comment.