Skip to content

Commit ec56593

Browse files
committed
ci: add quality gate to ci
1 parent edf675c commit ec56593

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
name: ci-node-workflow
2-
on:
2+
on:
33
pull_request:
44
branches:
55
- develop
6-
jobs:
6+
jobs:
7+
sonarcloud:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 22
14+
- run: npm run test:cov
715
check-application:
816
runs-on: ubuntu-latest
917
steps:
1018
- uses: actions/checkout@v4
1119
- uses: actions/setup-node@v4
1220
with:
13-
node-version: 20
21+
node-version: 22
1422
- run: npm run test
1523
- run: npm run start
1624

@@ -32,4 +40,4 @@ jobs:
3240
with:
3341
context: .
3442
push: true
35-
tags: mathmelo/ci-github-actions:latest
43+
tags: mathmelo/ci-github-actions:latest

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
"name": "gitsign",
3-
"version": "1.0.0",
4-
"main": "index.js",
5-
"scripts": {
6-
"start": "node index.js",
7-
"test": "node index.test.js"
8-
},
9-
"keywords": [],
10-
"author": "",
11-
"license": "ISC",
12-
"description": ""
2+
"name": "gitsign",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"scripts": {
6+
"start": "node index.js",
7+
"test": "node index.test.js",
8+
"test:cov": "node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info"
9+
},
10+
"keywords": [],
11+
"author": "",
12+
"license": "ISC",
13+
"description": ""
1314
}

0 commit comments

Comments
 (0)