From e6c52ffc7e9c8e489d56c93282833f60f693db60 Mon Sep 17 00:00:00 2001 From: Stephen Benjamin Date: Wed, 6 Apr 2022 19:27:01 -0400 Subject: [PATCH] Fix lint action --- .github/workflows/go.yml | 3 --- .github/workflows/golangci-lint.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/golangci-lint.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e19401a..80d916f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,8 +21,5 @@ jobs: - name: Build run: make - - name: Lint - run: make lint - - name: Test run: make test diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 0000000..be94b0f --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,20 @@ +name: golangci-lint +on: + push: + branches: + - main + pull_request: +permissions: + contents: read +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v2 + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version + version: latest