-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (39 loc) · 1.18 KB
/
pr-checks.yml
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
38
39
name: pr-checks
on:
pull_request:
branches: [main]
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
check-build:
name: Lint and build check
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup environment
uses: ./.github/actions/setup-composite
- run: pnpm format:check
- run: pnpm build:changes
verify-env-vars:
name: Verify environment variables are on dev and prod
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup environment
uses: ./.github/actions/setup-composite
- name: Check env vars for development
run: |
vercel env pull .env --yes --environment=development --token=${{ secrets.VERCEL_TOKEN }}
pnpm -F api check-env-vars
- name: Check env vars for production
run: |
vercel env pull .env --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
pnpm -F api check-env-vars