Skip to content

Commit

Permalink
cancel running ci workflows for pr branches (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Senic authored Mar 15, 2023
1 parent 1066ad3 commit 01aa9ff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:

workflow_dispatch:

# cancel same workflows in progress for pull request branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}


# global env vars, available in all jobs and steps
env:
Expand All @@ -35,6 +40,9 @@ jobs:
name: Unit tests
runs-on: ubuntu-latest

# max run time 5 minutes
timeout-minutes: 5

steps:
- uses: actions/checkout@v3

Expand All @@ -55,6 +63,9 @@ jobs:
needs: [ build ]
runs-on: ubuntu-latest

# max run time 20 minutes
timeout-minutes: 20

strategy:

# let all tests run, can find multiple failures in different setup
Expand Down

0 comments on commit 01aa9ff

Please sign in to comment.