diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f53b638..8d1cae2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,3 @@ jobs: - name: Run Test run: make test shell: bash - - name: golangci-lint - uses: golangci/golangci-lint-action@v2 - with: - version: latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..f3c895d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: + - '*' + paths-ignore: + - README.md + pull_request: + branches: + - master + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - name: Set up Go 1.x + uses: actions/setup-go@v3 + with: + go-version: ^1.17 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + version: latest