diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37b60d9..8be5ace 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@v5 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..a028cb2 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@v5 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..9fe08a8 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,4 @@ +--- builds: - main: ./cmd/pipesore/main.go env: @@ -5,10 +6,6 @@ builds: goos: - linux - darwin -archives: - - replacements: - darwin: macOS - 386: i386 checksum: name_template: 'checksums.txt' changelog: