pins sonarqube scan action version #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Coverage | |
on: | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize] | |
jobs: | |
test-coverage: | |
name: Upload Coverage to Sonarqube | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
# - name: Install node modules | |
# run: npm ci | |
# - name: Build coverage report | |
# run: npm run coverage | |
# env: | |
# CI: true | |
- name: get dir | |
run: | | |
echo "Current directory is $PWD" | |
echo "Directory contents are $(ls -l)" | |
- name: SonarQube Scan | |
uses: SonarSource/sonarqube-scan-action@master | |
with: | |
args: > | |
-Dsonar.host.url=https://sonarqube.crw.coxautoinc.com | |
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
-X |