diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..e331bc0 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,25 @@ +name: Test +on: + pull_request: + branches: ["master"] + push: + branches: + - master + tags: + - "*" +jobs: + sonarqube: + runs-on: + - runs-on=${{ github.run_id }} + - runner=2cpu-linux-x64 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: SonarSource/sonarqube-scan-action@v5 + env: + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + with: + args: > + -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }}