Skip to content

Bump actions/setup-go from 5 to 6 #7

Bump actions/setup-go from 5 to 6

Bump actions/setup-go from 5 to 6 #7

Workflow file for this run

name: tests
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
jobs:
go:
name: Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: true
- name: Verify go.mod is tidy
run: |
go mod tidy
git diff --exit-code -- go.mod go.sum
- name: go vet
run: go vet -mod=vendor ./...
- name: go build
run: go build -mod=vendor ./...
- name: go test
run: go test -mod=vendor -race -count=1 -timeout=120s ./...
lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
go-version: "1.26"
cache: true
- uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m
terraform-fmt:
name: terraform fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.9.8"
- name: terraform fmt -check
run: terraform fmt -check -recursive examples/