Skip to content

update workflows and readme #1095

update workflows and readme

update workflows and readme #1095

Workflow file for this run

name: build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ['1.22', '1.21', '1.20', '1.19', '1.18']
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}
check-latest: true
- uses: actions/checkout@v4
- name: Build
run: go build -v -race
- name: Test
run: go test -v
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.22'
check-latest: true
- uses: actions/checkout@v4
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.57.2
./bin/golangci-lint run