Skip to content

build(deps): bump actions/setup-go from 4 to 5 #149

build(deps): bump actions/setup-go from 4 to 5

build(deps): bump actions/setup-go from 4 to 5 #149

Workflow file for this run

name: Checks
on:
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- ".github/workflows/checks.yml"
- ".golangci.yml"
pull_request:
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.18.x
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
tidy:
name: Tidy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.18.x
- name: Tidy
shell: bash
run: |
go mod tidy
STATUS=$(git status --porcelain)
if [ ! -z "$STATUS" ]; then
echo "Unstaged files:"
echo $STATUS
echo "Run 'go mod tidy' and commit them"
exit 1
fi
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.18.x
- name: Test
run: go test ./...