diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5fb43f92..286da51d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,20 @@ on: workflow_dispatch: jobs: + golangci: + name: lint + runs-on: ubuntu-latest + defaults: + run: + shell: bash + container: + image: ghcr.io/go-debos/test-containers/debos-trixie:main + steps: + - uses: actions/setup-go@v4 + - uses: actions/checkout@v3 + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + test: strategy: fail-fast: false @@ -177,6 +191,7 @@ jobs: name: allgreen if: always() needs: + - golangci - unit-tests - recipe-tests runs-on: ubuntu-latest diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 00000000..6b63b2bc --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,5 @@ +linters: + enable: + - gofmt + - stylecheck + - whitespace