-
Notifications
You must be signed in to change notification settings - Fork 413
37 lines (32 loc) · 885 Bytes
/
main.yml
File metadata and controls
37 lines (32 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Main
on:
push:
branches: ['main']
env:
FORCE_COLOR: 1
jobs:
deploy-staging:
name: Deploy (staging)
runs-on: ubuntu-24.04
permissions:
contents: read
timeout-minutes: 10
concurrency: ${{ github.workflow }}-deploy-staging
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: ./.github/actions/setup
# Run tests & checks before deploying
- name: Syncpack lint
run: pnpm check:deps
- name: Run linter
run: pnpm check:turbo
- name: Run linter (formatting)
run: pnpm check:format
- name: Run tests
run: pnpm test
- name: Deploy Workers (staging)
run: pnpm turbo deploy -- -e staging
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}