Skip to content

Commit 1b24a3e

Browse files
authored
build: ci workflow & sonarcloud config (#333)
1 parent 5be85ea commit 1b24a3e

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/ci.yml

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

sonar-project.properties

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
sonar.projectKey = City-of-Helsinki_kukkuu
1+
sonar.projectKey = City-of-Helsinki_kukkuu-admin
22
sonar.organization = city-of-helsinki
3-
sonar.javascript.node.maxspace=8192
4-
sonar.javascript.coverage.reportPaths = sonar-report.xml
3+
sonar.javascript.node.maxspace = 8192
4+
sonar.testExecutionReportPaths = sonar-report.xml
5+
sonar.javascript.lcov.reportPaths = ./coverage/lcov.info
56
sonar.sources = src
67
sonar.exclusions = **/__snapshots__/*
78
sonar.tests = .
8-
sonar.test.inclusions = **/__tests__/*
9+
sonar.test.inclusions = **/__tests__/*
10+
sonar.coverage.exclusions = **/*.d.ts,**/*.json,**/*.xml,**/*.yaml,**/*.md,**/*.html,**/*.css,**/*.properties,*.config.*js,src/index.tsx,src/domain/api/generatedTypes,src/setupTests.ts,**/__tests__/**,**/__snapshots__/**,**/*.test.ts,**/*.spec.ts,src/domain/eventGroups/api/eventGroupsApi.ts,src/domain/messages/api/messagesApi.ts,src/domain/ticketSystemPassword/api/ticketSystemPasswordsApi.ts,src/domain/occurrences/api/OccurrenceApi.ts,src/domain/eventsAndEventGroups/api/eventsAndEventGroupsApi.ts,src/domain/children/api/ChildApi.ts,src/domain/venues/api/VenueApi.ts,src/domain/events/api/EventApi.ts,src/domain/profile/api.ts,src/domain/dashboard/api.ts,**/*Query.ts,**/*Query.tsx,**/*Queries.ts,**/*Mutation.ts,**/*Mutation.tsx,**/*Mutations.ts,**/mutations/**,**/queries/**

0 commit comments

Comments
 (0)