-
Notifications
You must be signed in to change notification settings - Fork 47
55 lines (43 loc) · 1.19 KB
/
commit-checkups.yml
File metadata and controls
55 lines (43 loc) · 1.19 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 🫡 Commit checkups (Verification)
on:
push:
branches:
- main
- develop
pull_request:
jobs:
commit-checkups:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
environment: 'staging'
env:
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Doppler CLI
uses: dopplerhq/cli-action@v3
- name: Setup Doppler
run: |
doppler configure set token "$DOPPLER_TOKEN"
- name: Env vars health check
run: |
if ! doppler run -- printenv | grep -q 'NEXT_PUBLIC_SDK__AUTHENTICATION_URL'; then
echo "👹 Oops! Missing required environment variable during health check..."
exit 1
fi
echo "🚑 Doppler envVars seem healthy!"
- name: Setup dotenv
run: |
scripts/setup-ci-dotenv
- run: npm install --include=optional sharp
- name: Install dependencies
run: bun i
- name: Commit checks
run: ./.husky/pre-commit