-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 1012 Bytes
/
build_code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Build code and run test"
on:
push:
branches:
- "**" # Build all branches
tags-ignore:
- "**" # Don't build any tags
workflow_dispatch:
jobs:
build_code:
name: "Build Code and run Tests"
runs-on: ubuntu-latest
permissions:
packages: read
env:
NEXT_PUBLIC_DIGISOS_ENV: dev-sbs # tester er pr. nå avhengig av denne
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: "Install dependencies"
run: mv .npmrc.dockerbuild .npmrc && npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: "Run orval"
run: npm run orval
- name: "Build project"
run: npm run build
- name: "Run tests"
run: npm install @rollup/rollup-linux-x64-gnu && npm run test