Skip to content

Commit

Permalink
Add Golangci-lint to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Vazquez <[email protected]>
  • Loading branch information
austinvazquez committed Feb 9, 2023
1 parent 157c4da commit 55e15a6
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,34 @@ jobs:
with:
working-directory: src/github.com/containerd/cgroups

lint:
name: Lint
timeout-minutes: 10
needs: [project]
runs-on: ubuntu-22.04

strategy:
matrix:
go-version: [1.19.x, 1.20.x]

steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Checkout cgroups
uses: actions/checkout@v3
with:
path: src/github.com/containerd/cgroups

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
args: --verbose
working-directory: src/github.com/containerd/cgroups

test:
name: Test cgroups
timeout-minutes: 15
Expand Down

0 comments on commit 55e15a6

Please sign in to comment.