From 10d81cffd548a183d3f8d824a801637f988441da Mon Sep 17 00:00:00 2001 From: adrian-lin-1-0-0 Date: Wed, 16 Oct 2024 23:44:25 +0800 Subject: [PATCH] ci : lint --- .github/workflows/test.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17057e0..bbbe0d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,16 +10,20 @@ on: branches: [ "main" ] jobs: - - build: + golangci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.21' - - - name: Test - run: go test -v ./... + go-version-file: go.mod + cache-dependency-path: go.sum + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.60 + - name: Install dependencies + run: go mod download + - name: Unit Test + run: go test -v ./... \ No newline at end of file