Files
bolt.diy/.github/workflows/ci.yaml
Chris Toshok e4a57bf59e [PRO-974] add sentry for both client and server (#20)
Basically ran through the remix + cloudflare setup docs.
2025-02-20 14:13:19 -07:00

40 lines
969 B
YAML

name: CI/CD and Deploy
on:
# Disabled due to https://linear.app/replay/issue/PRO-1001/nutnew-broken-builds
#push:
# branches:
# - main
workflow_dispatch:
pull_request:
jobs:
test:
name: CI/CD (and deploy on main)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup and Build
uses: ./.github/actions/setup-and-build
with:
sentry-auth-token: ${{ github.ref == 'refs/heads/main' && secrets.SENTRY_AUTH_TOKEN || '' }}
- name: Run type check
run: pnpm run typecheck
# - name: Run ESLint
# run: pnpm run lint
- name: Run tests
run: pnpm run test
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
command: pages deploy
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}