From 59073a42130c8b354f707c200f7c8dc54f1acb04 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 10 Oct 2023 17:51:47 +0200 Subject: [PATCH] pipelinetest: add sonar ci --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..80892dd --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,23 @@ +name: My Test Single Project +on: + push: + branches: + - main + - 'release/**' + - develop + - 'feature/**' + pull_request: + types: [opened, synchronize, reopened] +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - 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 }}