40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest # Of 'shell' als je expliciet een lokale host-runner gebruikt
|
|
steps:
|
|
# Stap 1: Laat Gitea Actions automatisch de juiste PR-code ophalen
|
|
# Dit vervangt de hele handmatige 'git clone / git fetch' bash-code
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
# Stap 2: Installeer Node.js en pnpm
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20 # Pas aan naar jouw Node-versie indien nodig
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 9 # Pas aan naar jouw pnpm-versie indien nodig
|
|
|
|
# Stap 3: Voer je checks uit
|
|
- name: Typecheck, lint, and test
|
|
env:
|
|
SKIP_ENV_VALIDATION: 1
|
|
ARGON2_MEMORY_SIZE: 1024
|
|
ARGON2_ITERATIONS: 1
|
|
BCRYPT_ROUNDS: 4
|
|
run: |
|
|
pnpm install --frozen-lockfile
|
|
pnpm prisma:generate
|
|
pnpm biome:lint
|
|
pnpm typecheck
|
|
pnpm test
|