* chore(dependabot): PRs gegen dev statt gegen main main bewegt sich nur ueber Releases, Dependency-Bumps sollen dort nicht einzeln einschlagen. Die Base einer einzelnen PR umzuhaengen reicht dafuer nicht: Dependabot setzt sie beim naechsten Rebase wieder auf die konfigurierte Ziel-Branch zurueck -- so sind #403, #404 und #406 trotz Retarget auf main gelandet. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * ci: auch auf dev laufen Der Workflow triggerte nur auf main. Sobald Dependabot und Feature-PRs gegen dev gehen, haetten die gar keine Checks -- der Fehler faellt dann erst beim Release-PR auf. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: ralksta <ralksta@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: CI
|
||
|
||
on:
|
||
push:
|
||
branches: [main, dev]
|
||
pull_request:
|
||
# dev is included because dependency and feature PRs target it — without
|
||
# it those PRs would carry no checks at all, and main would only find out
|
||
# at release time.
|
||
branches: [main, dev]
|
||
|
||
# Cancel in-progress runs for the same PR / branch
|
||
concurrency:
|
||
group: ${{ github.workflow }}-${{ github.ref }}
|
||
cancel-in-progress: true
|
||
|
||
jobs:
|
||
ci:
|
||
name: Type-check & Test
|
||
runs-on: ubuntu-latest
|
||
timeout-minutes: 10
|
||
|
||
steps:
|
||
- uses: actions/checkout@v7
|
||
|
||
- name: Set up Node.js
|
||
uses: actions/setup-node@v7
|
||
with:
|
||
node-version: '20'
|
||
cache: 'npm'
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: TypeScript – type check
|
||
run: npx tsc --noEmit
|
||
|
||
- name: Run tests
|
||
run: npx vitest run
|
||
|
||
- name: Build
|
||
run: npm run build
|
||
env:
|
||
# Minimal env vars so Next.js build doesn't bail early on env validation
|
||
IMMICH_API_URL: http://localhost:2283
|
||
IMMICH_API_KEY: placeholder-key-for-ci
|
||
AUTH_SECRET: placeholder-secret-for-ci-builds-must-be-32-chars-long
|