Skip to content

Update CI

Update CI #22

Workflow file for this run

name: test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- "1.19.2"
steps:
- name: Install Go
uses: actions/setup-go/@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout/@v4
- name: Lint
uses: golangci/golangci-lint-action@v5
- name: Run test
run: go test -v
- name: Check diff
run: |
cd _example
sed -i'' -e 's/prmdg/go run ../' ./gen.go
go generate .
git restore HEAD ./gen.go
git diff --exit-code