From 2e5ea66e9163a4454e9e48c280c32716be2e43bc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 5 Nov 2020 10:27:40 +0100 Subject: [PATCH] Add lint job In the past, we had lint issues which were merged into the code, and/or lint changed without us adapting our code. This should allow us to stay on top of linting issue by highlighting them in PRs. --- .github/workflows/go-lint.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/go-lint.yaml diff --git a/.github/workflows/go-lint.yaml b/.github/workflows/go-lint.yaml new file mode 100644 index 0000000..061e8f9 --- /dev/null +++ b/.github/workflows/go-lint.yaml @@ -0,0 +1,16 @@ +name: "Go lint" +on: [pull_request, push] + +jobs: + code-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Lint cmd folder + uses: Jerome1337/golint-action@v1.0.2 + with: + golint-path: './cmd/...' + - name: Lint pkg folder + uses: Jerome1337/golint-action@v1.0.2 + with: + golint-path: './pkg/...'