From 73cd0d3bf71973a63fa2b02f3de1e0e8f0f3a5b9 Mon Sep 17 00:00:00 2001 From: Ayooluwa Isaiah Date: Sat, 2 Nov 2024 22:21:28 +0100 Subject: [PATCH] update release workflow --- .github/workflows/release.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6af945c..434fa6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,7 +70,7 @@ jobs: - name: Build assets with Goreleaser uses: goreleaser/goreleaser-action@v6 with: - version: "~> v2" + version: ~> v2 args: release --clean --snapshot - name: Upload assets to nightly release @@ -89,10 +89,22 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: ${{ env.go_version }} + go-version: 1.23 + + - name: Use Exiftool + uses: woss/exiftool-action@v12.92 + if: matrix.os != 'windows-latest' + + - uses: MinoruSekine/setup-scoop@v4.0.1 + with: + apps: exiftool + if: matrix.os == 'windows-latest' + + - name: Set up gotestfmt + run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest - name: Run tests - run: go test ./... -race + run: go test ./... -json -v -race 2>&1 | gotestfmt -hide 'empty-packages' publish_stable: name: Release stable version