Skip to content

task: Legg til CI-workflow for lint, format og build #1

task: Legg til CI-workflow for lint, format og build

task: Legg til CI-workflow for lint, format og build #1

Workflow file for this run

name: Kvalitetssjekk
on:
pull_request:
branches: [dev, main]
jobs:
frontend:
runs-on: ubuntu-latest
defaults: { run: { working-directory: frontend } }
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run build # tsc -b + vite build
backend:
runs-on: ubuntu-latest
defaults: { run: { working-directory: backend } }
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 22 }
- run: npm ci
- run: npm run format:check
- run: npm run build