Repository navigation
53 lines (51 loc) · 1.7 KB
/
Copy pathsecurity.yml
File metadata and controls
53 lines (51 loc) · 1.7 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
name: Dependency and security checks
'on':
push: {}
pull_request: {}
workflow_dispatch: {}
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- project: 08 - rmtDev/Build Process (webpack)
kind: app
- project: 09 - Supplemental/Formatting in JS
kind: app
- project: .
kind: tests
defaults:
run:
working-directory: ${{ matrix.project }}
env:
NEXT_TELEMETRY_DISABLED: '1'
POSTGRES_PRISMA_URL: postgresql://course_fixture:isolated_ci_fixture_only@localhost:5432/course_fixture
POSTGRES_URL_NON_POOLING: postgresql://course_fixture:isolated_ci_fixture_only@localhost:5432/course_fixture
DATABASE_URL: file:/tmp/petsoft-ci.db
AUTH_SECRET: isolated-ci-fixture-not-a-deployment-secret
CANONICAL_URL: http://localhost:3000
ALLOW_TUTORIAL_SEED: '1'
TUTORIAL_SEED_PASSWORD: isolated_ci_fixture_password_2026
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1
with:
node-version: '24'
cache: npm
cache-dependency-path: ${{ matrix.project }}/package-lock.json
- run: npm ci --ignore-scripts
- run: npm audit --audit-level=low
- if: matrix.kind == 'next'
run: 'npx --no-install prisma generate
npx --no-install prisma db push
npx --no-install prisma db seed'
- if: matrix.kind != 'tests'
run: npm run build
- if: matrix.kind == 'tests'
run: npm test
- if: matrix.kind == 'next' || matrix.kind == 'app'
run: npm run lint --if-present