chore: enable unnamedResult rule from go-critic #1932
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: Build Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| go-versions: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| versions: ${{ steps.versions.outputs.value }} | |
| steps: | |
| - id: versions | |
| run: | | |
| versions=$(curl -s 'https://go.dev/dl/?mode=json' | jq -c 'map(.version[2:])') | |
| echo "value=${versions}" >> $GITHUB_OUTPUT | |
| build_test: | |
| needs: go-versions | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go-version: ${{fromJson(needs.go-versions.outputs.versions)}} | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Build Test v3 | |
| run: | | |
| make build_test |