Skip to content

Commit

Permalink
Add cancel workflow and timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
tortmayr committed Jul 17, 2024
1 parent 9979fb8 commit 6921e60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci-cancel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Cancel currently running CI workflows
on:
workflow_run:
workflows: ['CI']
types:
- requested
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa #v0.12.1
with:
workflow_id: ${{ github.event.workflow.id }}
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-node@v4.0.2
Expand All @@ -26,6 +27,7 @@ jobs:
fi
lint:
name: Lint
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
Expand All @@ -47,6 +49,7 @@ jobs:
playwright:
name: Playwright Tests
timeout-minutes: 120
runs-on: ubuntu-latest
env:
STANDALONE_URL: 'file://${{ github.workspace }}/examples/workflow-test/repositories/glsp-client/examples/workflow-standalone/app/diagram.html'
Expand Down

0 comments on commit 6921e60

Please sign in to comment.