From 2c499d5f6c44a5af692521130c8918794adcf9bd Mon Sep 17 00:00:00 2001 From: Sam Stoelinga Date: Sat, 30 Sep 2023 23:03:38 -0700 Subject: [PATCH] ensure all pipelines use go 1.21 (#239) --- .github/workflows/goreleaser.yaml | 16 ++++++++++++++-- .github/workflows/system-tests.yml | 6 +++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 17426551..0a438694 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -1,5 +1,6 @@ name: goreleaser on: + pull_request: push: tags: - "*" @@ -13,10 +14,21 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Set up Go + - name: Setup Go 1.21.x uses: actions/setup-go@v4 - - name: Run GoReleaser + with: + go-version: '1.21.x' + - name: Run GoReleaser build only + uses: goreleaser/goreleaser-action@v5 + if: github.event_name == 'pull_request' + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: build --snapshot + - name: Run GoReleaser on tag uses: goreleaser/goreleaser-action@v4 + if: startsWith(github.ref, 'refs/tags/') with: distribution: goreleaser version: latest diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml index e7b22d39..9e143ec2 100644 --- a/.github/workflows/system-tests.yml +++ b/.github/workflows/system-tests.yml @@ -1,5 +1,5 @@ name: System tests -run-name: ${{ github.actor }} triggered integration tests 🚀 +run-name: ${{ github.actor }} triggered system tests on: push: branches: @@ -17,4 +17,8 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 + - name: Setup Go 1.21.x + uses: actions/setup-go@v4 + with: + go-version: '1.21.x' - run: make test-system