Skip to content

Commit

Permalink
Sonar cloud config
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanPospisil committed Jan 13, 2025
1 parent 3b6b630 commit 2376213
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fetch-depth: 0

- name: Configure linters
run : |-
run: |-
# echo "disable=SC2086" > ~/.shellcheckrc
mkdir -vp .github/linters/config/
curl -o .github/linters/config/.jscpd.json https://raw.githubusercontent.com/ansible/metrics-utility/main/.github/linters/.jscpd.json
Expand Down Expand Up @@ -53,3 +53,20 @@ jobs:
run: |-
pip3 install pytest pytest-mock mock mocker
# pytest -s -v tests/
sonarcloud-analysis:
runs-on: ubuntu-latest
needs: static-analysis
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up SonarCloud
uses: sonarsource/sonarcloud-github-action@v2
with:
projectKey: ansible_metrics-utility
organization: ansible
token: ${{ secrets.SONAR_TOKEN }}

- name: Run SonarCloud analysis
run: sonar-scanner

0 comments on commit 2376213

Please sign in to comment.