From cdef5c022f32dfecf37b6942e9f52010fe2736fd Mon Sep 17 00:00:00 2001 From: Yoshiyuki Mineo Date: Sat, 28 Dec 2024 17:01:09 +0900 Subject: [PATCH] Introduce golangci-lint --- .github/workflows/test.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb82503..fa15037 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,16 +8,14 @@ jobs: os: [ubuntu-latest] runs-on: ${{matrix.os}} steps: - - name: Set up Go - uses: actions/setup-go@v2 + - name: Setup Go + uses: actions/setup-go@v5 with: go-version: ${{matrix.go-version}} - name: Checkout - uses: actions/checkout@v2 - - name: gofmt - run: test -z "`gofmt -l .`" - - name: golint - run: test -z "`golint ./...`" + uses: actions/checkout@v4 + - name: Lint + uses: golangci/golangci-lint-action@v6 - name: go test run: go test -v ./... - name: Run example