From eb78f53c082e379c6e40f7f4457ed9df1a3a7269 Mon Sep 17 00:00:00 2001 From: okkun-sh Date: Wed, 31 Jan 2024 00:13:00 +0900 Subject: [PATCH] adjuist CI configurations --- .github/workflows/release.yml | 13 ++++++++----- .github/workflows/test.yml | 3 ++- .goreleaser.yaml | 8 -------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c711daa..3658fa1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,14 +11,17 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: actions/setup-go@v3 + - name: checkout + uses: actions/checkout@v3 + + - name: setup + uses: actions/setup-go@v4 with: go-version-file: go.mod cache: true - - uses: goreleaser/goreleaser-action@v4 + + - name: release + uses: goreleaser/goreleaser-action@v4 with: args: release --rm-dist env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 097ab62..8cf28b7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,8 @@ jobs: - name: setup uses: actions/setup-go@v3 with: - go-version: '1.21.x' + go-version-file: go.mod + cache: true - name: test run: go test -cover -coverprofile=coverage.out ./... -v diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 5a33ae3..b4b787b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,14 +20,6 @@ archives: format_overrides: - goos: windows format: zip -checksum: - name_template: 'checksums.txt' -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:' brews: - repository: owner: okkun-sh