Skip to content

Commit 2b5b370

Browse files
authored
build: ci workflow (#413)
* build: ci workflow variables from .env.example * chore: sonarcloud config file
1 parent 5f244a3 commit 2b5b370

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
common:
12+
uses: City-of-Helsinki/.github/.github/workflows/ci-node.yml@main
13+
secrets: inherit
14+
with:
15+
node-version: 20
16+
extra-commands: |
17+
cp .env.example .env

sonar-project.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
sonar.projectKey = City-of-Helsinki_kultus-admin-ui
2+
sonar.organization = city-of-helsinki
3+
sonar.javascript.node.maxspace = 8192
4+
sonar.javascript.lcov.reportPaths = ./coverage/lcov.info
5+
sonar.sources = src
6+
sonar.exclusions = **/__snapshots__/*,**/__mocks__/*
7+
sonar.tests = .
8+
sonar.test.inclusions = **/__tests__/*

0 commit comments

Comments
 (0)