From 9dbbde803fd4d05e8cd889f5959aa59f0c8078e1 Mon Sep 17 00:00:00 2001 From: Linde Agahd Vrenne Date: Thu, 29 Oct 2026 14:13:49 +0100 Subject: [PATCH] Legg til CI-workflow for lint, format og build --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fa8622c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +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