From 2068ea9f774fe5c4f9e7e1cdfa85f1002f2c7e6e Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Sat, 27 Aug 2022 04:03:58 +0900 Subject: [PATCH] Fix revive in CI --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2576819c..1eb836089 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,11 +16,10 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Run Revive - run: | - GO111MODULE=off go get github.com/mgechev/revive - $(go env GOPATH)/bin/revive -exclude ./vendor/... ./... # this is ouput for user - $(go env GOPATH)/bin/revive -exclude ./vendor/... ./...| xargs -0 -r false # this is for github actions + - name: Run Revive Action by pulling pre-built image + uses: docker://morphy/revive-action:v2 + with: + exclude: "./vendor/..." - name: Run go fmt run: go fmt ./...