This repository was archived by the owner on May 27, 2026. It is now read-only.
build(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 in the golangci-lint group #535
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ format('{0}-{1}', github.workflow, github.head_ref) }} | |
| cancel-in-progress: true | |
| jobs: | |
| GoVersions: | |
| name: Lookup Go versions | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.versions.outputs.matrix }} | |
| latest: ${{ steps.versions.outputs.latest }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.5.0 | |
| - uses: arnested/go-version-action@1f4135a30a2498f919e428c81c342f9334b3a93d #v1.1.22 | |
| id: versions | |
| UnitTestJob: | |
| runs-on: ubuntu-latest | |
| needs: GoVersions | |
| strategy: | |
| matrix: | |
| go: ${{ fromJSON(needs.GoVersions.outputs.matrix) }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.5.0 | |
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - run: go install github.com/jstemmer/go-junit-report/v2@latest | |
| - run: go test -race -cover -coverprofile=coverage.out -covermode=atomic | |
| - run: go test -json 2>&1 | go-junit-report -parser gojson > junit.xml | |
| if: always() | |
| - name: Upload coverage reports to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload test results to Codecov | |
| if: ${{ !cancelled() }} | |
| uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| UnitTests: | |
| if: ${{ always() }} | |
| needs: UnitTestJob | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check status | |
| if: ${{ needs.UnitTestJob.result != 'success' }} | |
| run: exit 1 | |
| GolangCI-Lint: | |
| needs: GoVersions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.5.0 | |
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: ${{ needs.GoVersions.outputs.latest }} | |
| - uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0 | |
| with: | |
| version: latest |