Skip to content

Sync repo templates ⚙ #95

Sync repo templates ⚙

Sync repo templates ⚙ #95

Workflow file for this run

# Maintained in https://github.com/coreos/repo-templates
# Do not edit downstream.
name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
# don't waste job slots on superseded code
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
strategy:
matrix:
go-version: [1.22.x, 1.23.x]
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Check out repository
uses: actions/checkout@v3
- name: Check modules
run: go mod verify
- name: Test
run: go test -v ./...
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.61.0
args: -E=gofmt --timeout=30m0s