Skip to content

CI

CI #6

Workflow file for this run

name: CI
on:
push:
branches: [v3.0]
pull_request:
branches: [v3.0]
jobs:
test:
runs-on: ubuntu-latest-large
strategy:
fail-fast: false
matrix:
go-version: ['1.21', '1.22', '1.23']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Download dependencies
run: go get -v -t ./...
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -coverprofile=cover.out .
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage-go${{ matrix.go-version }}
path: cover.out
retention-days: 7