From 4936d20364aa594c18477c135e5e7f94e9e5b6b1 Mon Sep 17 00:00:00 2001 From: Dyson Simmons Date: Mon, 12 Feb 2024 00:10:48 +1100 Subject: [PATCH] Bump actions & goreleaser --- .github/workflows/build.yml | 8 ++++---- .github/workflows/release.yml | 12 ++++++------ .goreleaser.yaml | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37b60d9..e1e20a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,4 @@ +--- name: build on: push: @@ -6,12 +7,11 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.19 - cache: true + go-version: 'stable' - name: Test with coverage run: go test -v -covermode=count -coverprofile=coverage.out ./... - name: Convert coverage to lcov diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a2ff7f..ab632ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +--- name: release on: push: @@ -8,19 +9,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.19 - cache: true + go-version: 'stable' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f995f60..83955e9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,4 @@ +--- builds: - main: ./cmd/pipesore/main.go env: