diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f587dcb..0217818 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,3 +68,15 @@ jobs: - name: Run audit run: npm audit + + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + + - name: SonarQube Quality Gate + uses: sonarsource/sonarqube-quality-gate-action@master + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/sq.yaml b/.github/workflows/sq.yaml new file mode 100644 index 0000000..ab4b553 --- /dev/null +++ b/.github/workflows/sq.yaml @@ -0,0 +1,23 @@ +name: Build +on: + push: + branches: + - master # or the name of your main branch +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + + - uses: sonarsource/sonarqube-quality-gate-action@master + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/processor/sonar-project.properties b/processor/sonar-project.properties new file mode 100644 index 0000000..daeaa09 --- /dev/null +++ b/processor/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=Mollie-Connector \ No newline at end of file