This repository has been archived by the owner on May 18, 2024. It is now read-only.
build(deps): bump actions/cache from 3.3.1 to 3.3.2 #1123
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
go-version: "1.21" | |
- name: run-tests | |
run: go test -race -vet all ./... | |
staticcheck: | |
name: staticcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
id: setup-go | |
with: | |
go-version: "1.21" | |
- run: | | |
go install honnef.co/go/tools/cmd/staticcheck@master | |
- name: get staticcheck version | |
id: get-staticcheck-version | |
run: | | |
echo "version=$(staticcheck --version | sed -e 's/,//g')" >>${GITHUB_OUTPUT} | |
- name: staticcheck cache | |
id: staticcheck-cache | |
uses: actions/[email protected] | |
with: | |
path: ~/.cache/staticcheck | |
key: "${{ steps.get-staticcheck-version.outputs.version }}-${{ steps.setup-go.outputs.go-version }}" | |
- name: run staticcheck | |
run: | | |
staticcheck ./... |