Skip to content

Commit

Permalink
ci: Enable lint checks for csi-wrapper
Browse files Browse the repository at this point in the history
This patch enables the golangci-lint checks for csi-wrapper.

The version of golangci-lint is bumped to v1.52.2, since the old
version has a bug when processing the --prefix-path option, which
is necessary to run the lint tool in sub modules.

golangci/golangci-lint#3571

Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
  • Loading branch information
yoheiueda committed Apr 20, 2023
1 parent a8d0e67 commit 298d98e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# (C) Copyright Red Hat 2022.
# SPDX-License-Identifier: Apache-2.0
# (C) Copyright Confidential Containers Contributors
# # SPDX-License-Identifier: Apache-2.0
#
# Run linting tools on the sources of the project.
---
Expand All @@ -20,6 +20,7 @@ jobs:
- .
- peerpod-ctrl
- peerpodconfig-ctrl
- volumes/csi-wrapper
- webhook
steps:
- name: Checkout the pull request code
Expand All @@ -38,7 +39,7 @@ jobs:
working-directory: ${{ matrix.workdir }}
args: --path-prefix=${{ matrix.workdir }}
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.51.1
version: v1.52.2

go_check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 298d98e

Please sign in to comment.