Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 (#588) #1253

build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 (#588)

build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 (#588) #1253

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- uses: actions/setup-go@v5.0.1
with:
go-version: "1.22.0"
- name: run-tests
run: go test -race -vet all ./...
staticcheck:
name: staticcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- uses: actions/setup-go@v5.0.1
id: setup-go
with:
go-version: "1.22.0"
- 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/cache@v4.0.2
with:
path: ~/.cache/staticcheck
key: "${{ steps.get-staticcheck-version.outputs.version }}-${{ steps.setup-go.outputs.go-version }}"
- name: run staticcheck
run: |
staticcheck ./...