Skip to content

Commit

Permalink
specify the environment to use for cypress tests
Browse files Browse the repository at this point in the history
currently, all cypress tests are failing in ci through github actions
with the error below.
```
Error: [next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret Please define a `secret` in production. MissingSecret [MissingSecretError]: Please define a `secret` in production.
```

the value of `NEXTAUTH_SECRET` has been set in the staging and production
github environments however. running the job in debug mode shows that the
secret's value is returning as null.
```
```

this commit is an attempt to get the tests to pass in ci by specifying the environment to use for cypress tests. hopefully it'll pick up the secret.
  • Loading branch information
alishaevn committed Feb 12, 2024
1 parent b782b26 commit ae53512
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
webTarget: web
cypress:
runs-on: ubuntu-22.04
environment:
name: Production
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit ae53512

Please sign in to comment.