Skip to content

Update go builder to support go 1.20 #525

Update go builder to support go 1.20

Update go builder to support go 1.20 #525

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.18.0'
- '1.19.0'
- '1.20.0'
- '1.21.0'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
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@v3
- uses: actions/setup-go@v3
with:
# Specify the most recent (1.Y.Z) Y release
go-version-file: go.mod
cache: true
- run: make lint
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
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