-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.08 KB
/
Copy pathci.yml
File metadata and controls
43 lines (35 loc) · 1.08 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
name: CI & Security Audit
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
audit-and-test:
name: Security Audit, Lint & Test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run dependency vulnerability audit
run: npm audit --audit-level=critical
continue-on-error: false
- name: Run unit & integration tests
run: npx vitest run
env:
NEXT_PUBLIC_SUPABASE_URL: https://mock.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY: mock-anon-key
SUPABASE_SERVICE_ROLE_KEY: mock-service-role-key
DATABASE_URL: postgresql://mock:mock@localhost:5432/mock
STRIPE_SECRET_KEY: sk_test_mock
STRIPE_WEBHOOK_SECRET: whsec_mock