bump golang.org/x/mod v0.21.0 and golangci-lint v1.61.0 (#64) #171
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: unit-tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
# https://github.com/actions/go-versions/blob/main/versions-manifest.json | |
go-version: "stable" | |
id: go | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
# https://github.com/golangci/golangci-lint-action | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.61.0 | |
# Workaround for "file exists" errors while running tar. | |
# golangci-lint-action conflicts with caching in setup-go | |
skip-pkg-cache: true | |
- name: Build | |
run: make build | |
- name: Unit tests | |
run: make test |