Skip to content

Commit

Permalink
action: add contrib-lint in smoke test
Browse files Browse the repository at this point in the history
Use the official GitHub action for golangci-lint from its authors.

Signed-off-by: Yadong Ding <ding_yadong@foxmail.com>
  • Loading branch information
Desiki-high committed Feb 18, 2024
1 parent 423c5ce commit 6fc67be
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,29 @@ jobs:
name: nydusify-artifact
path: contrib/nydusify/cmd

contrib-lint:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- path: contrib/nydusify
- path: contrib/ctr-remote
- path: contrib/nydus-overlayfs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: 'go.work'
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.56
working-directory: ${{ matrix.path }}
args: --timeout=30m --issues-exit-code=0

nydus-build:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -192,7 +215,6 @@ jobs:
cache-dependency-path: "**/*.sum"
- name: Unit Test
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b /usr/bin v1.54.2
make -e DOCKER=false contrib-test
- name: Upload contrib coverage file
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 6fc67be

Please sign in to comment.