diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index efcc41973..3ea14377f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,10 @@ on: - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Run unit tests @@ -38,3 +42,7 @@ jobs: go vet ./... go build ./... make test-packages + - name: Gorelease dry-run + if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.go-version == '1.22' + run: | + goreleaser build diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 8d0c08ede..3f0060c4f 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -6,6 +6,10 @@ on: - master pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: name: Run e2e tests diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index d6c1b1f55..eaa2484e6 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -5,6 +5,11 @@ on: - master - main pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: golangci: name: lint