Skip to content

Commit

Permalink
refactor: Update CI workflows to use environment variables for config…
Browse files Browse the repository at this point in the history
…uration
  • Loading branch information
absternator committed Sep 4, 2024
1 parent a6628ad commit 24ce1d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/jestCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
- name: Run unit and integration tests
run: npm run test
env:
GITHUB_CLIENT_ID: ${{ secrets.CLIENT_ID_GITHUB }}
GITHUB_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET_GITHUB }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
- name: stop all components
working-directory: .
run: ./scripts/stop_test server-only
5 changes: 5 additions & 0 deletions .github/workflows/playwrightCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
- name: Run e2e tests
env:
MICROREACT_TOKEN: ${{ secrets.MICROREACT_TOKEN }}
GITHUB_CLIENT_ID: ${{ secrets.CLIENT_ID_GITHUB }}
GITHUB_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET_GITHUB }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
SESSION_SECRET: ${{ secrets.SESSION_SECRET }}
working-directory: ./app/client-v2
run: npm run test:e2e:${{ matrix.browser}}
- name: Stop all components
Expand Down

0 comments on commit 24ce1d3

Please sign in to comment.