Skip to content

Commit

Permalink
Cancel already running job with same ref
Browse files Browse the repository at this point in the history
ref is "
The branch or tag ref that triggered the workflow run. For branches this in the format refs/heads/<branch_name>, and for tags it is refs/tags/<tag_name>.
"
  • Loading branch information
mvdbeek committed Jun 30, 2021
1 parent fdb36c7 commit 5c8898f
Show file tree
Hide file tree
Showing 19 changed files with 51 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: API tests
on: [push, pull_request]
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
concurrency:
group: api-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/api_paste.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on: [push, pull_request]
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
GALAXY_TEST_USE_UVICORN: false
concurrency:
group: api-legacy-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/converter_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Converter tests
on: [push, pull_request]
concurrency:
group: converter-${{ github.ref }}
cancel-in-progress: true
jobs:

test:
name: Test
runs-on: ubuntu-18.04
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/db_indexes.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Database indexes
on: [push, pull_request]
concurrency:
group: database-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: 'galaxy root'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build docs
on: [push, pull_request]
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/first_startup.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: first startup
on: [push, pull_request]
concurrency:
group: first-startup-${{ github.ref }}
cancel-in-progress: true
env:
YARN_INSTALL_OPTS: --frozen-lockfile
jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/framework.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Framework tests
on: [push, pull_request]
concurrency:
group: framework-${{ github.ref }}
cancel-in-progress: true
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Integration
on: [push, pull_request]
concurrency:
group: integration-${{ github.ref }}
cancel-in-progress: true
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
GALAXY_TEST_AMQP_URL: 'amqp://localhost:5672//'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration_selenium.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Integration Selenium
on: [push, pull_request]
concurrency:
group: integration-selenium-${{ github.ref }}
cancel-in-progress: true
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
GALAXY_TEST_SELENIUM_REMOTE: '1'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/jest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Client Unit Testing
on: [push, pull_request]
concurrency:
group: client-${{ github.ref }}
cancel-in-progress: true
jobs:
jest:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/labels-verifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Labels Verifier
on:
pull_request_target:
types: [closed]

jobs:
onMerged:
name: "Check Labels on merge"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Python linting
on: [push, pull_request]
concurrency:
group: py-lint-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/maintenance_bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Maintenance Bot
on:
pull_request_target:
types: [opened, reopened, edited, ready_for_review, unlabeled]

jobs:
labeler:
name: Assign labels and milestone
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mulled.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Mulled Unit Tests
on: [push, pull_request]
concurrency:
group: mulled-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/osx_startup.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: macOS startup
on: [push, pull_request]
concurrency:
group: osx-first-startup-${{ github.ref }}
cancel-in-progress: true
jobs:

test:
name: Startup test
runs-on: macos-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/performance.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Performance tests
on: [push, pull_request]
concurrency:
group: performance-${{ github.ref }}
cancel-in-progress: true
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
jobs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/selenium.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Selenium tests
on: [push, pull_request]
concurrency:
group: selenium-${{ github.ref }}
cancel-in-progress: true
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
GALAXY_TEST_SKIP_FLAKEY_TESTS_ON_ERROR: 'true'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/toolshed.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Toolshed tests
on: [push, pull_request]
concurrency:
group: toolshed-${{ github.ref }}
cancel-in-progress: true
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
TOOL_SHED_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/toolshed?client_encoding=utf8'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Unit tests
on: [push, pull_request]
concurrency:
group: py-unit-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
Expand Down

0 comments on commit 5c8898f

Please sign in to comment.