Skip to content

Commit

Permalink
Inject webhook URLs in e2e tests in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisAlund committed Feb 15, 2024
1 parent 3d2a789 commit 007aa47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Cache Firebase
uses: actions/cache@v3
with:
path: ~/.cache/firebase/
key: ${{ runner.os }}-firebase-${{ hashFiles('~/.cache/firebase/**') }}

- name: Replace Webhook URLs in test file
run: |
sed -i 's/WEBHOOK_URL_GOOGLE_CHAT/${{ secrets.WEBHOOK_URL_GOOGLE_CHAT }}/g' functions/test/e2e/chat.spec.ts
sed -i 's/WEBHOOK_URL_SLACK/${{ secrets.WEBHOOK_URL_SLACK }}/g' functions/test/e2e/chat.spec.ts
- run: yarn --cwd functions install

Expand Down

0 comments on commit 007aa47

Please sign in to comment.