Skip to content

Commit

Permalink
test: Use newer technique to cancel in-progress builds (#6172) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed May 10, 2024
1 parent 44b9966 commit 485a2b5
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 15 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/cancel-previous-workflow.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/colima-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
required: false
default: ""

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/container-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ on:
required: false
default: ""

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
DDEV_IGNORE_EXPIRING_KEYS: "false"
# Unfortunately, we can't test forked PRs with the secret that's provided for this
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docscheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
- ".readthedocs.yaml"
- ".github/workflows/**"
- "markdown-link-check.json"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
- "pkg/**"
- "go.*"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash
Expand Down Expand Up @@ -61,7 +65,7 @@ jobs:
with:
go-version: '>=1.21'

# Fails if something is wrong with the dependencies
# Fails if something is wrong with the dependencies
- name: Verify Go Modules
run: |
go mod verify
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ on:
required: false
default: false

# We do not cancel in-progress builds here because in general we
# want to see success on each commit, and we usually use [skip ci]
# to prevent builds on commits that don't matter.
#concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

env:
BUILDKIT_PROGRESS: plain
DOCKER_CLI_EXPERIMENTAL: enabled
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
- "go.*"
- "Makefile"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
BUILDKIT_PROGRESS: plain
DOCKER_CLI_EXPERIMENTAL: enabled
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ on:
pull_request_target:
types: [opened, edited, reopened, synchronize, ready_for_review, review_requested]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
issues: write
pull-requests: write
statuses: write
checks: write

jobs:
check_pr_title:
name: Check PR Title
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
required: false
default: false


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash
Expand Down

0 comments on commit 485a2b5

Please sign in to comment.