Skip to content

Commit

Permalink
Update sonarqube deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
menyagah committed Jun 3, 2024
1 parent e94c2f6 commit 506df2d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/deploy_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ on:
push:
branches:
- main

pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
sonarqube:
name: sonarqube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
fetch-depth: 0
- name: Install dependencies
run: yarn
- name: Test and coverage
run: yarn jest --coverage
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Expand Down

0 comments on commit 506df2d

Please sign in to comment.