Skip to content

update actions

update actions #384

Workflow file for this run

name: CI/CD
on:
push:
branches: ['master']
workflow_dispatch:
jobs:
format-build-test-and-e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: npm run format:check
- run: npm run build:client --workspace=@digital-garden/blog
- run: npm run build:server --workspace=@digital-garden/blog
- run: npm run test --workspace=@digital-garden/blog
- run: npm run e2e:setup --workspace=@digital-garden/blog -- --with-deps
- run: npm run e2e --workspace=@digital-garden/blog
- uses: actions/upload-artifact@v4
with:
name: playwright-report
path: ./packages/blog/playwright-report/
retention-days: 30
deploy:
runs-on: ubuntu-latest
concurrency: deploy-group
needs:
- format-build-test-and-e2e
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}