Skip to content

Commit

Permalink
Merge pull request #82 from suzuki-shunsuke/ci-lint-test
Browse files Browse the repository at this point in the history
ci: run lint and test for pull requests on GitHub Actions
  • Loading branch information
hexdigest authored Jan 4, 2024
2 parents 8a7ed95 + 87c2015 commit 5777a1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: test
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: '1.21.5'
- run: make lint
- run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install:
go install ./cmd/minimock

./bin/golangci-lint: ./bin
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.51.1
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.55.2

./bin/goreleaser: ./bin
go install -modfile tools/go.mod github.com/goreleaser/goreleaser
Expand Down

0 comments on commit 5777a1c

Please sign in to comment.