Skip to content

Prepare pre-release v3.0.0-beta.0 (#301) #646

Prepare pre-release v3.0.0-beta.0 (#301)

Prepare pre-release v3.0.0-beta.0 (#301) #646

Workflow file for this run

name: Go test and lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main, v3 ]
jobs:
test:
name: Test with latest golang
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up latest golang
uses: actions/setup-go@v3
with:
go-version: ^1.18
- name: Test
run: go test -v -race ./...
test-old:
name: Test with 1.17
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Go 1.17
uses: actions/setup-go@v3
with:
go-version: 1.17
- name: Test
run: go test -v -race ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.17
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2