Skip to content

Update to Go 1.22

Update to Go 1.22 #530

Workflow file for this run

name: quality-assurance
on: [push]
jobs:
check:
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
#- windows-latest
go_version:
- '1.21.0'
- '1.22.0'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '~${{ matrix.go_version }}'
cache: true
- run: |
if [[ "${{runner.debug}}" == "1" ]]; then
DEBUG_FLAGS="-v"
fi
go test -race ${DEBUG_FLAGS} ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
# Specify the most recent (1.Y.Z) Y release
go-version-file: go.mod
cache: true
- uses: golangci/golangci-lint-action@v5
with:
version: latest
args: --timeout=10m
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- run: make generate
- run: |
git add .
if [[ -n "$(git status --porcelain)" ]]; then
PAGER= git diff --cached
exit 1
fi
- run: make build