Skip to content

Merge pull request #137 from savel999/master #5

Merge pull request #137 from savel999/master

Merge pull request #137 from savel999/master #5

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
go-version: ["1.19", "1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- run: go test ./...
lint:
strategy:
matrix:
go-version: ["1.21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- run: diff -u <(echo -n) <(gofmt -s -d ./)
- run: diff -u <(echo -n) <(go vet ./...)