Files
Mind-o-Mat/.gitea/workflows/ci.yml
T
Jannik 09714801b3
CI / test (push) Canceled after 0s
CI / webapp (push) Canceled after 0s
v2.0.11: ESLint in CI-Workflow
- .gitea/workflows/ci.yml: lint-Job zwischen deps und build
  Reihenfolge: install -> lint -> build -> test
  ESLint-Fehler blocken jetzt den CI-Build
2026-09-05 12:45:02 +02:00

55 lines
1011 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Tests
run: npm test
webapp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install webapp dependencies
run: |
cd webapp
npm ci
npm run build
- name: Verify artifacts
run: |
test -f webapp/dist/index.html
test -f webapp/dist/manifest.webmanifest
echo "Webapp build artifacts present"