Skip to content

build(deps): bump actions/setup-go from 4.0.1 to 4.1.0 #808

build(deps): bump actions/setup-go from 4.0.1 to 4.1.0

build(deps): bump actions/setup-go from 4.0.1 to 4.1.0 #808

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
jobs:
vet:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Restore Go cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.20.x
- name: Run vet
run: make tidy fmt vet
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
echo "run 'make tidy fmt vet' and commit changes"
exit 1
fi