From dfd910740a5cf0d5319022016cfbb8e380abdf1a Mon Sep 17 00:00:00 2001 From: evalphobia Date: Fri, 26 Jun 2020 14:48:08 +0900 Subject: [PATCH] [-] Fix CI setting for pull request (#64) --- .github/workflows/test_lint.yml | 2 +- .github/workflows/test_mod_tidy.yml | 2 +- .github/workflows/test_test.yml | 2 +- Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_lint.yml b/.github/workflows/test_lint.yml index 0baa00f..b7862ae 100644 --- a/.github/workflows/test_lint.yml +++ b/.github/workflows/test_lint.yml @@ -1,6 +1,6 @@ name: lint -on: [push] +on: [push, pull_request] jobs: lint: diff --git a/.github/workflows/test_mod_tidy.yml b/.github/workflows/test_mod_tidy.yml index 6b2db25..659c140 100644 --- a/.github/workflows/test_mod_tidy.yml +++ b/.github/workflows/test_mod_tidy.yml @@ -1,6 +1,6 @@ name: tidy -on: [push] +on: [push, pull_request] jobs: tidy: diff --git a/.github/workflows/test_test.yml b/.github/workflows/test_test.yml index eb68959..3f393aa 100644 --- a/.github/workflows/test_test.yml +++ b/.github/workflows/test_test.yml @@ -1,6 +1,6 @@ name: test -on: [push] +on: [push, pull_request] jobs: test: diff --git a/Makefile b/Makefile index 115c7bf..8404ef9 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ init: go mod download lint: - @type golangci-lint > /dev/null || go get -u github.com/golangci/golangci-lint/cmd/golangci-lint + @type golangci-lint > /dev/null || go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.27.0 golangci-lint $(LINT_OPT) run ./... test-coverage: __setup_test