Skip to content

Commit

Permalink
Add deploy notif/E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
samhh committed Jun 5, 2023
1 parent c2c8f7a commit 6d93551
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
docker tag mercury registry.fly.io/mercury-test:latest
docker push registry.fly.io/mercury-test:latest
- run: nix develop .#ops -c flyctl deploy -t ${{ secrets.FLY_AUTH_TOKEN }}
# This (emphasis on `--fail-with-body`) acts as a sort of final E2E test.
- run: |
curl https://mercury-test.fly.dev/api/v1/slack --fail-with-body -X POST \
--oauth2-bearer '${{ secrets.MERCURY_SLACK_TOKEN }}' \
-d channel=playground \
-d title='🚀 Mercury' \
-d desc='A new deployment has succeeded.' \
-d link='${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
docs:
name: Publish docs
Expand Down

0 comments on commit 6d93551

Please sign in to comment.