From dc12498116b542f05836089e15c3767b9be6b7db Mon Sep 17 00:00:00 2001 From: "Linas M." <126604774+LT-Linas35@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:35:28 +0300 Subject: [PATCH] Update sonarcloud-ci.yml --- .github/workflows/sonarcloud-ci.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonarcloud-ci.yml b/.github/workflows/sonarcloud-ci.yml index b14d237d..ea2def73 100644 --- a/.github/workflows/sonarcloud-ci.yml +++ b/.github/workflows/sonarcloud-ci.yml @@ -1,12 +1,39 @@ -name: Sonar Cloud Scanner Release and Trigger build Docker image workflow +name: Super Linter and Sonar Cloud Scanner Release and Trigger build Docker image workflow on: release: types: [published] jobs: + lint: + name: Linting The Code + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 + + - name: Super-linter + uses: super-linter/super-linter@v7.1.0 # x-release-please-version + env: + # To report GitHub Actions status checks + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IGNORE_ERRORS: true #1. I`m leaving this TRUE on purpose, becouse I`m notwilling fixing this code... :) + continue-on-error: true #2. + sonarcloud: name: SonarCloud runs-on: ubuntu-latest + needs: lint steps: - uses: actions/checkout@v3 with: