Skip to content

pins sonarqube scan action version #78

pins sonarqube scan action version

pins sonarqube scan action version #78

Workflow file for this run

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: Public IP
id: ip
run: |
ip -4 addr
- name: get dir
run: |
echo "Current directory is $PWD"
echo "Directory contents are $(ls -l)"
- name: trying to reach server
run: |
curl -v ${{ secrets.SONAR_HOST_URL }}
# - name: SonarQube Scan
# uses: SonarSource/sonarqube-scan-action@master
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# with:
# args: >
# -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }}
# -Dsonar.login=${{ secrets.SONAR_TOKEN }}
# -X