Skip to content

[PRM-750] Version tweaks (#119) #252

[PRM-750] Version tweaks (#119)

[PRM-750] Version tweaks (#119) #252

name: "Z-AUTOMATED: SonarQube Cloud Analysis"
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
permissions:
pull-requests: write
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.14
- name: Make virtual environment
run: |
make env
- name: Run tests with coverage
run: |
make test-coverage
cd ./lambdas
sed -i "s@filename=\"@filename=\"lambdas/@" coverage.xml
cd ..
- name: SonarQube Cloud Scan
uses: SonarSource/sonarqube-scan-action@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}