diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 15fdb281d..14a9c019a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: @@ -13,6 +17,7 @@ jobs: lint: name: Lint runs-on: ubuntu-latest + timeout-minutes: 5 steps: - name: Checkout uses: actions/checkout@v3 @@ -25,6 +30,7 @@ jobs: unit-test: name: Unit tests runs-on: ubuntu-latest + timeout-minutes: 15 # TODO: reduce to 5 minutes steps: - name: Checkout uses: actions/checkout@v3 @@ -52,6 +58,7 @@ jobs: - unit-test - build runs-on: ubuntu-latest + timeout-minutes: 120 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6bbe35dfa..f3648cedc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,6 +9,7 @@ jobs: lib-check: name: Check libraries runs-on: ubuntu-latest + timeout-minutes: 5 steps: - name: Checkout uses: actions/checkout@v3 @@ -33,6 +34,7 @@ jobs: - lib-check - ci-tests runs-on: ubuntu-latest + timeout-minutes: 60 steps: - name: Checkout uses: actions/checkout@v3