diff --git a/.github/workflows/check-style.yml b/.github/workflows/check-style.yml deleted file mode 100644 index aca802b2..00000000 --- a/.github/workflows/check-style.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Check-style-workflow - -on: - pull_request: - branches: - - master - - MIHO/*V3* - types: [opened, synchronize, reopened, edited] - - push: - -jobs: - Check-style: - runs-on: windows-latest - if: contains(github.event.pull_request.body, 'The workflow check-style was intentionally skipped.') == false - steps: - - uses: actions/checkout@master - - - name: Check licenses - working-directory: src - run: powershell .\CheckLicenses.ps1 - if: always() - - - name: Install .NET core 8.0 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '8.0.x' - if: always() - - - name: Install tools for style - working-directory: src - run: powershell .\InstallToolsForStyle.ps1 - if: always() - - - name: Check headers - working-directory: src - run: powershell .\CheckHeaders.ps1 - if: always() - - - name: Check format - working-directory: src - run: powershell .\CheckFormat.ps1 - if: always() - - - name: Check bite-sized - working-directory: src - run: powershell .\CheckBiteSized.ps1 - if: always() - - - name: Check dead code - working-directory: src - run: powershell .\CheckDeadCode.ps1 - if: always() - - - name: Check TODOs - working-directory: src - run: powershell .\CheckTodos.ps1 - if: always() - diff --git a/.github/workflows/sonarcloud-analysis.yml b/.github/workflows/sonarcloud-analysis.yml new file mode 100644 index 00000000..9c4903a7 --- /dev/null +++ b/.github/workflows/sonarcloud-analysis.yml @@ -0,0 +1,40 @@ +name: SonarCloud Analysis + +on: + push: + branches: + - main + - analyze-* + tags: + - '*' + +jobs: + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + + - name: Cache SonarCloud packages + uses: actions/cache@v3 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@v2 + with: + args: > + -Dsonar.organization=PACKAGE-EXPLORER + -Dsonar.projectKey=PACKAGE-EXPLORER_package-explorer + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/dummy.txt b/dummy.txt new file mode 100644 index 00000000..a3a1a5c5 --- /dev/null +++ b/dummy.txt @@ -0,0 +1 @@ +# retry