Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Nymphium committed May 1, 2024
1 parent 46dbf3e commit 13b9417
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,23 @@ jobs:

steps:
- name: Install Go
uses: actions/setup-go/@v2
uses: actions/setup-go/@v5
with:
go-version: ${{ matrix.go }}

- name: Checkout code
uses: actions/checkout/@v3
uses: actions/checkout/@v4

- name: Lint
uses: golangci/golangci-lint-action@v3
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

0 comments on commit 13b9417

Please sign in to comment.