Skip to content

Commit e98fcca

Browse files
authored
Merge pull request #26 from mathmelo/revert-25-feature/fix-sonarcloud-ci
Revert "ci: separate build and quality gates"
2 parents e3126a7 + bad4a6f commit e98fcca

File tree

2 files changed

+17
-24
lines changed

2 files changed

+17
-24
lines changed

.github/workflows/build.yaml renamed to .github/workflows/ci.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
name: ci-build
1+
name: ci-node-workflow
22
on:
33
pull_request:
44
branches:
5-
- main
5+
- develop
66
jobs:
7+
sonarcloud:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
- run: npm run test:cov
17+
- name: SonarQube Scan
18+
uses: sonarsource/sonarqube-scan-action@v4.1.0 # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21+
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
722
check-application:
823
runs-on: ubuntu-latest
924
steps:

.github/workflows/quality-gate.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)