From aa82ba866bb33ce617893a026460dc249a0f4e16 Mon Sep 17 00:00:00 2001 From: Michael Fridman Date: Mon, 11 Mar 2024 09:25:53 -0400 Subject: [PATCH] build: improve CI workflows (#715) --- .github/workflows/ci.yaml | 8 ++++++++ .github/workflows/e2e.yaml | 4 ++++ .github/workflows/lint.yaml | 5 +++++ 3 files changed, 17 insertions(+) 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