diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 7f4bf8e7..b9081017 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,4 +1,5 @@ name: 🔨 Build Test + on: pull_request: workflow_dispatch: @@ -14,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index d9efdff2..db17d1ca 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: Run golangci-lint uses: golangci/golangci-lint-action@v3.4.0 with: diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml index 703acf7f..a2447465 100644 --- a/.github/workflows/release-binary.yml +++ b/.github/workflows/release-binary.yml @@ -18,7 +18,7 @@ jobs: - name: "Set up Go" uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: 1.19 - name: "Create release on GitHub" uses: goreleaser/goreleaser-action@v3 diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index e8c03445..00000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: 👮🏼‍♂️ Sonarcloud -on: - push: - branches: - - master - - dev - pull_request: - types: [opened, synchronize, reopened] - workflow_dispatch: - -jobs: - sonarcloud: - name: SonarCloud - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - - name: "Set up Go" - uses: actions/setup-go@v3 - with: - go-version: 1.18 - - - name: Run unit Tests - working-directory: v2/ - run: | - go test -coverprofile=./cov.out ./... - - - name: Run Gosec Security Scanner - working-directory: v2/ - run: | - go install github.com/securego/gosec/cmd/gosec@latest - gosec -no-fail -fmt=sonarqube -out report.json ./... - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file