Skip to content

Commit 2c30e51

Browse files
authored
build: ci workflow (#46)
refs: PSD-7445
1 parent 6cefdea commit 2c30e51

4 files changed

Lines changed: 8018 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 ]
6+
pull_request:
7+
branches: [ main ]
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: 22
16+
extra-commands: |
17+
cp .env.example .env

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Pulkka UI - A user interface for storing observations with timestamps",
55
"main": "",
66
"scripts": {
7+
"build": "yarn dist",
78
"clean": "rimraf dist/*",
89
"copy": "copyfiles -f ./src/index.html ./src/pulkka.appcache ./dist && copyfiles -u 1 ./src/favicons/* ./src/img/* ./dist",
910
"dist": "npm run copy & webpack --env=dist",
@@ -16,6 +17,7 @@
1617
"serve:dist": "node server.js --env=dist",
1718
"start": "npm run copy && cp -n .env.example .env; node server.js --env=dev",
1819
"test": "karma start",
20+
"test:coverage": "echo 'No tests'",
1921
"test:watch": "karma start --autoWatch=true --singleRun=false"
2022
},
2123
"repository": "",

sonar-project.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sonar.projectKey = City-of-Helsinki_sports-maintenance-dashboard
2+
sonar.organization = city-of-helsinki
3+
sonar.javascript.lcov.reportPaths = coverage/lcov.info
4+
sonar.sources = src
5+
sonar.exclusions = **/__tests__/**/*
6+
sonar.test.inclusions = **/__tests__/**/*

0 commit comments

Comments
 (0)