From 02c4c5168ba5768229966f526f443a91e2c97f75 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Sun, 6 Jul 2025 13:47:59 +0200 Subject: [PATCH] feat(ci): Changes CI - use SonarQube action - remove the helm installation as it is already present - changes types and branches activation --- .github/workflows/go-test.yaml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index 4b43eed..015e60c 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -2,12 +2,15 @@ name: Go-Tests on: pull_request: + types: [opened, synchronize, reopened] branches: - develop push: branches: - master + - main - develop + - 'releases/**' jobs: tests: runs-on: ubuntu-latest @@ -16,12 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.23 - - name: Install Helm - run: | - curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 - chmod 700 get_helm.sh - ./get_helm.sh + go-version: 1.24 - name: Launch Test run: | go mod tidy @@ -36,12 +34,12 @@ jobs: runs-on: ubuntu-latest needs: tests steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: tests-results - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: tests-results + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v5.2.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}