From dc6fdd7f9f6672dc54f0defbb58a82f940a3da2a Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 6 Feb 2023 17:26:26 +0100 Subject: [PATCH] Added sonar workflow --- .github/workflows/sonar.yml | 19 +++++++++++++++++++ sonar-project.properties | 1 + 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/sonar.yml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 0000000..65e9893 --- /dev/null +++ b/.github/workflows/sonar.yml @@ -0,0 +1,19 @@ +name: Build +on: + push: + branches: + - master + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: docker://sonarsource/sonar-scanner-cli:latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..878beed --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=bostrot_telegram-support-bot \ No newline at end of file