Skip to content

Bump actions/setup-go from 4.0.0 to 5.2.0 #193

Bump actions/setup-go from 4.0.0 to 5.2.0

Bump actions/setup-go from 4.0.0 to 5.2.0 #193

Workflow file for this run

name: Go
on:
push:
branches:
- "**"
tags-ignore:
- "*"
pull_request:
types:
- synchronize
- opened
- reopened
branches:
- main
env:
GOPROXY: "https://proxy.golang.org"
jobs:
lint:
name: Go Mod Tidy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-go@v5.2.0
with:
go-version: "1.20.1"
- name: Check Go module tidiness
shell: bash
run: |
go mod tidy
STATUS=$(git status --porcelain go.mod go.sum)
if [ ! -z "$STATUS" ]; then
echo "Running go mod tidy modified go.mod and/or go.sum"
exit 1
fi