Skip to content

Commit

Permalink
Cancel CI that is not the latest commit on a branch (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical authored Mar 2, 2023
1 parent ca250f3 commit 3dc8d91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# See LICENSE file for licensing details.
name: Tests

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

on:
pull_request:
schedule:
Expand All @@ -24,6 +28,7 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -36,6 +41,7 @@ jobs:
unit-test:
name: Unit tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -48,6 +54,7 @@ jobs:
lib-check:
name: Check libraries
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -81,6 +88,7 @@ jobs:
- lib-check
- build
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
needs:
- ci-tests
runs-on: ubuntu-20.04 # todo update to latest after changing to snap install
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 3dc8d91

Please sign in to comment.