From 122f722d3d978c9107bac0d0e22e5193f0d7a215 Mon Sep 17 00:00:00 2001 From: "s.maeda" Date: Sat, 20 Jan 2024 10:03:44 +0900 Subject: [PATCH 1/2] Modified test github action --- .github/workflows/test.yaml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b72106e..c9ac05b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,42 +1,36 @@ name: test - -on: - push: - branches: - - "**" +on: pull_request: {} - jobs: lint: name: lint runs-on: ubuntu-latest strategy: matrix: - go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x] + go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x] steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.45.2 - + version: v1.45.2 test: name: go test runs-on: ubuntu-latest strategy: matrix: - go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x] + go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x] steps: - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: version: ${{ matrix.go-version }} - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run go tests env: GO111MODULE: on From 0befaca9833470152a1b07892f227a45f25e7e5c Mon Sep 17 00:00:00 2001 From: "s.maeda" Date: Sat, 20 Jan 2024 10:11:58 +0900 Subject: [PATCH 2/2] update golangci-lint version --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c9ac05b..cf15bce 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,7 +17,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.45.2 + version: v1.54 test: name: go test runs-on: ubuntu-latest