Skip to content

Commit

Permalink
Change concurrency to only allow one job at a time per branch (duckdu…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosholgado authored Sep 1, 2022
1 parent f313c3a commit 2f8a815
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 25 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ on:
paths-ignore:
- '**.md'

concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
unit_tests:
name: JVM CI checks
runs-on: ubuntu-latest

steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -52,11 +51,6 @@ jobs:
name: Android CI checks

steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v2
with:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@ on:
- cron: '0 2 * * *' # run at 2 AM UTC
workflow_dispatch:

concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
unit_tests:
name: Spotless and unit tests
runs-on: ubuntu-latest

steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -49,11 +48,6 @@ jobs:
name: Android CI checks

steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v2
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/privacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@ on:
- cron: '0 3 * * *' # run at 3 AM UTC
workflow_dispatch:

concurrency:
group: ${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
privacy_tests:
name: Privacy Tests
runs-on: ubuntu-latest

steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 2f8a815

Please sign in to comment.