Skip to content

Commit

Permalink
build: updated sonar scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcwbr committed Jun 18, 2024
1 parent d457ece commit 72e2fd1
Show file tree
Hide file tree
Showing 3 changed files with 712 additions and 1,549 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

Expand All @@ -32,11 +34,21 @@ jobs:
if: github.event_name == 'release'
run: npm --no-git-tag-version version ${GITHUB_REF#refs/*/}

- name: publish to npmjs.com
- name: publish package
if: github.event_name == 'release'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: sonar scanner
run: npm run sonar -- -Dsonar.login=${{ secrets.SONAR_AUTH_TOKEN }}
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_AUTH_TOKEN }}
with:
args: >
-Dsonar.organization=mrcwbr
-Dsonar.projectKey=ioc-service-container
-Dsonar.sources=src/
-Dsonar.tests=tests/
-Dsonar.verbose=true
Loading

0 comments on commit 72e2fd1

Please sign in to comment.