Skip to content

Commit

Permalink
🟢 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultleouay committed Jun 14, 2024
1 parent 0caa518 commit 855b254
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
env:
OPENSTATUS_API_KEY: ${{ secrets.OPENSTATUS_API_KEY }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

steps:
- name: ⬇️ Checkout repo
Expand All @@ -29,12 +30,14 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
packageManager: bun
command: deploy --minify src/index.ts

- name: 🧪 Test
run: pnpm test
run: bun test
id: test

- name: 🚀 Rollback
if: failure()
if: failure() && steps.test.outcome == 'failure'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down

0 comments on commit 855b254

Please sign in to comment.