vendor: bump golang.org/x/tools from 0.21.0 to 0.22.0 #80
Workflow file for this run
This file contains 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: Pull Request Validation | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
go-mod: | |
strategy: | |
matrix: | |
name: | |
- oldstable | |
- stable | |
- tip | |
include: | |
- name: oldstable | |
version: "1.21" | |
- name: stable | |
version: "1.22" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go v${{ matrix.name }} | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version: ${{ matrix.version }} | |
- name: Checkout code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Check module vendoring | |
run: | | |
go mod tidy | |
go mod vendor | |
git diff --exit-code | |
build: | |
strategy: | |
matrix: | |
name: | |
- oldstable | |
- stable | |
- tip | |
include: | |
- name: oldstable | |
version: "1.21" | |
- name: stable | |
version: "1.22" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go v${{ matrix.name }} | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version: ${{ matrix.version }} | |
- name: Checkout code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Go code prechecks | |
run: | | |
go build ./... | |
unit-test: | |
strategy: | |
matrix: | |
name: | |
- oldstable | |
- stable | |
- tip | |
include: | |
- name: oldstable | |
version: "1.21" | |
- name: stable | |
version: "1.22" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go v${{ matrix.name }} | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 | |
with: | |
go-version: ${{ matrix.version }} | |
- name: Checkout code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Go code prechecks | |
run: | | |
go test ./... | |
lint: | |
runs-on: ubuntu-latest | |
needs: unit-test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | |
- name: Run golangci lint | |
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 | |
with: | |
version: v1.58.1 | |
# use our .golangci.yml and configure output to be logged in the GHA, | |
# in addition to annotating the commit. see | |
# https://github.com/golangci/golangci-lint-action/issues/119#issuecomment-981090648 | |
# for output | |
args: --config=.golangci.yml --verbose --out-${NO_FUTURE}format colored-line-number | |
skip-cache: true |