Skip to content

Commit

Permalink
ci: set timeout-minutes to jobs on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nukopy committed Jan 21, 2024
1 parent ac9b280 commit 65d4261
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ env:
jobs:
format:
name: Format [Rustfmt]
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -37,6 +38,7 @@ jobs:

lint:
name: Lint [Clippy]
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -52,6 +54,7 @@ jobs:
# Ensure that the project could be successfully compiled
cargo_check:
name: Compile
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -73,6 +76,7 @@ jobs:
# Run tests
test:
name: Test
timeout-minutes: 10
needs: [cargo_check]
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 65d4261

Please sign in to comment.