Skip to content

Merge pull request #135 from y-yagi/fix-ci #1

Merge pull request #135 from y-yagi/fix-ci

Merge pull request #135 from y-yagi/fix-ci #1

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 ./...)