fac33d6fa8
* Add support for `Go 1.21` Signed-off-by: Michal Biesek <michalbiesek@gmail.com> * add go1.21 guard to fuzz_test.go * ci: only build last two go versions * fix workflow yaml syntax error --------- Signed-off-by: Michal Biesek <michalbiesek@gmail.com> Co-authored-by: Thomas Pelletier <thomas@pelletier.codes>
33 lines
733 B
YAML
33 lines
733 B
YAML
name: test
|
|
on:
|
|
push:
|
|
branches:
|
|
- v2
|
|
pull_request:
|
|
branches:
|
|
- v2
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
|
|
go: [ '1.20', '1.21' ]
|
|
runs-on: ${{ matrix.os }}
|
|
name: ${{ matrix.go }}/${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup go ${{ matrix.go }}
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
- name: Run unit tests
|
|
run: go test -race ./...
|
|
release-check:
|
|
if: ${{ github.ref != 'refs/heads/v2' }}
|
|
uses: pelletier/go-toml/.github/workflows/release.yml@v2
|
|
with:
|
|
args: --snapshot
|