Bump golang.org/x/tools from 0.18.0 to 0.19.0 #28
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: Check | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- main | |
permissions: read-all | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: Build binary | |
run: go run tasks.go build | |
dogfeed: | |
name: Dogfeed | |
runs-on: ubuntu-22.04 | |
needs: | |
- test | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: Uninitialize ghasum | |
run: rm -f .github/workflows/gha.sum | |
- name: Run on this repository | |
run: | | |
go run ./cmd/ghasum init | |
go run ./cmd/ghasum verify | |
format: | |
name: Format | |
runs-on: ubuntu-22.04 | |
needs: | |
- build | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: Check source code formatting | |
run: go run tasks.go format-check | |
reproducible: | |
name: Reproducible build | |
runs-on: ubuntu-22.04 | |
needs: | |
- build | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: Check reproducibility | |
run: go run tasks.go reproducible | |
test: | |
name: Test | |
runs-on: ubuntu-22.04 | |
needs: | |
- build | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: Run tests | |
run: go run tasks.go coverage | |
vet: | |
name: Vet | |
runs-on: ubuntu-22.04 | |
needs: | |
- build | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: Vet source code | |
run: go run tasks.go vet |