diff --git a/.github/workflows/apply.yaml b/.github/workflows/apply.yaml index 23c8aea..693e595 100644 --- a/.github/workflows/apply.yaml +++ b/.github/workflows/apply.yaml @@ -13,7 +13,15 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Auth GCloud uses: "google-github-actions/auth@v2.1.2" diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..73a3ad8 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,10 @@ +sonar.projectKey=tribofustack_orderly-api +sonar.organization=tribofustack +sonar.projectName=orderly-api +sonar.projectVersion=1.0 +sonar.sources=./src +sonar.exclusions=**/*.spec.ts +# sonar.test.exclusions=**/*.spec.ts +# sonar.javascript.coveragePlugin=lcov +# sonar.javascript.lcov.reportPaths=coverage/lcov.info +sonar.sourceEncoding=UTF-8 \ No newline at end of file