add concurrency setting to workflows

it helps minimize github action views and stop outdated jobs
This commit is contained in:
Maycon Santos
2023-04-07 18:41:05 +02:00
parent 9158a4653a
commit 23b92e2615
8 changed files with 28 additions and 3 deletions
+4
View File
@@ -6,6 +6,10 @@ on:
- main - main
pull_request: pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
test: test:
runs-on: macos-latest runs-on: macos-latest
+4
View File
@@ -6,6 +6,10 @@ on:
- main - main
pull_request: pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
test: test:
strategy: strategy:
+3 -1
View File
@@ -8,9 +8,11 @@ on:
env: env:
downloadPath: '${{ github.workspace }}\temp' downloadPath: '${{ github.workspace }}\temp'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
test: test:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
+3
View File
@@ -1,5 +1,8 @@
name: golangci-lint name: golangci-lint
on: [pull_request] on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
golangci: golangci:
name: lint name: lint
+3 -1
View File
@@ -7,7 +7,9 @@ on:
pull_request: pull_request:
paths: paths:
- "release_files/install.sh" - "release_files/install.sh"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
install-cli-only: install-cli-only:
runs-on: macos-latest runs-on: macos-latest
+3 -1
View File
@@ -7,7 +7,9 @@ on:
pull_request: pull_request:
paths: paths:
- "release_files/install.sh" - "release_files/install.sh"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
install-cli-only: install-cli-only:
runs-on: ubuntu-latest runs-on: ubuntu-latest
+4
View File
@@ -12,6 +12,10 @@ env:
SIGN_PIPE_VER: "v0.0.5" SIGN_PIPE_VER: "v0.0.5"
GORELEASER_VER: "v1.14.1" GORELEASER_VER: "v1.14.1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -6,6 +6,10 @@ on:
- main - main
pull_request: pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
cancel-in-progress: true
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest