From d79828d6f9a3c00385ef787744e250d75db8dffa Mon Sep 17 00:00:00 2001 From: skanehira Date: Thu, 15 Aug 2024 23:53:52 +0900 Subject: [PATCH] chore: update and fix ci --- .github/workflows/ci.yaml | 16 ++++++++-------- .github/workflows/release.yaml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 32013c8..5a8863a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,31 +12,31 @@ jobs: golangci: strategy: matrix: - go-version: [1.16.x] + go-version: [1.23.x] os: [macos-latest, ubuntu-latest] name: golangci-lint runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v6 with: - version: v1.29 + version: v1.59 test: strategy: matrix: - go-version: [1.16.x] + go-version: [1.23.x] os: [macos-latest, ubuntu-latest] name: unit test runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 - - uses: actions/cache@v2 + uses: actions/checkout@v4 + - uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b6266ce..721433c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,13 +15,13 @@ jobs: with: fetch-depth: 0 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: 1.16.x + go-version: 1.23.x - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}