Skip to content

Update dependencies to Go 1.22 #884

Update dependencies to Go 1.22

Update dependencies to Go 1.22 #884

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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
cache: true
- 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