Skip to content

Commit

Permalink
Update development-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinOomenTheDeveloper authored Jun 18, 2024
1 parent 1e5f17e commit eeb6ae3
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/development-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,30 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: npm run build

sonarcloud:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install SonarCloud Scanner
run: npm install -g sonarqube-scanner # Install SonarCloud Scanner globally

- name: SonarCloud Scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonarqube-scanner \
-Dsonar.projectKey=SpotiCloud_frontend \
-Dsonar.organization=spoticloud \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
# Snyk security scan job
snyk_scan:
runs-on: ubuntu-latest
needs: build # Ensure the build job completes before running Snyk scan
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit eeb6ae3

Please sign in to comment.