Skip to content

Commit

Permalink
add env variables to cypress.yalm
Browse files Browse the repository at this point in the history
  • Loading branch information
3FE3LE committed Sep 16, 2023
1 parent d6f0385 commit 5b8474f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Cypress Tests
on: [push]
env:
MONGODB_URI: mongodb+srv://3l33f3:[email protected]/?retryWrites=true&w=majority
MONGODB_NAME: pkmdex
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: monomadex
NEXT_PUBLIC_API_URL: https://pokeapi.co/api/v2/pokemon/
jobs:
cypress-run:
runs-on: ubuntu-latest
Expand All @@ -22,7 +28,7 @@ jobs:
build: npm run build
start: npm start
wait-on: 'http://localhost:3000' # Waits for above
# Records to Cypress Cloud
# Records to Cypress Cloud
# https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
record: true
parallel: true # Runs test in parallel using settings above
Expand All @@ -31,4 +37,4 @@ jobs:
# in GitHub repo → Settings → Secrets → Actions
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5b8474f

Please sign in to comment.