Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency for each gh-action #186

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

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

jobs:
build-exposer:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
- ".github/workflows/docker.yaml"
workflow_dispatch:

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

jobs:
build-push-types:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
- cron: '0 18 * * *'
workflow_dispatch: {}

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

jobs:
e2e-test:
runs-on: ubuntu-latest
timeout-minutes: 30

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

strategy:
matrix:
config-file: ["two-chain.yaml", "build-chain.yaml", "multi-validator.yaml", "two-chain-gorelayer.yaml"]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

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

jobs:
lint-test:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- created
- edited

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

jobs:
pr-e2e-test:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && contains(github.event.comment.body, '/run_e2e')

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

strategy:
matrix:
config-file: [ "one-chain.yaml", "two-chain.yaml", "build-chain.yaml", "one-custom-chain.yaml", "multi-validator.yaml", "two-chain-gorelayer.yaml" ]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

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

jobs:
pr-test:
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/smoke-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Smoke tests

on:
# Run every 2 hours
# Run every 6 hours
schedule:
- cron: '0 */2 * * *'
- cron: '0 */6 * * *'
workflow_dispatch: {}

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

jobs:
smoke-test-1:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/starship-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

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

jobs:
deploy-docker:
runs-on: ubuntu-latest
Expand Down