Bump golang.org/x/tools from 0.19.0 to 0.20.0 #116
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 Requests | |
on: | |
push: | |
branches: | |
- v2 | |
pull_request: | |
branches: | |
- v2 | |
permissions: | |
contents: read | |
pull-requests: read | |
env: | |
GO_VERSION: stable | |
jobs: | |
build: | |
strategy: | |
matrix: | |
dir: [".", "cmd/depguard"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Build | |
run: go build -v ./... | |
working-directory: ${{ matrix.dir }} | |
- name: Test | |
run: go test -v ./... | |
working-directory: ${{ matrix.dir }} | |
lint: | |
strategy: | |
matrix: | |
dir: [".", "cmd/depguard"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
working-directory: ${{ matrix.dir }} |