Skip to content

Bump actions/setup-go from 5.5.0 to 6.1.0 #22

Bump actions/setup-go from 5.5.0 to 6.1.0

Bump actions/setup-go from 5.5.0 to 6.1.0 #22

Workflow file for this run

name: Go Build
permissions:
contents: read
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
env:
GO_VERSION: '1.24'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
with:
go-version: ${{ env.GO_VERSION }}
- name: Install golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
with:
version: latest
- name: Lint
run: golangci-lint run
- name: Format Check
run: |
go fmt ./...
if [ -n "$(git diff)" ]; then
echo "Code is not properly formatted. Please run 'go fmt ./...'"
exit 1
fi
build-and-test:
name: Build and Test
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...