Skip to content

update go, linter and ci #28

update go, linter and ci

update go, linter and ci #28

Workflow file for this run

name: Lint and test
on:
push:
tags:
- 'v*'
branches:
- master
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- uses: actions/checkout@v3
- run: |
go test -v -race ./...
for dir in v[0-9]*;
do
test -d "${dir}" || continue
cd "${dir}" || continue
go test -v -race ./...
cd ..
done
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2