Skip to content

Commit

Permalink
chore: set github action timeout to 3min / job (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasikpark authored Dec 20, 2022
1 parent 6e202cc commit 744b30b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:

jobs:
test:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -23,9 +24,10 @@ jobs:
go-version: 1.19

- name: Test
run: go test -v ./internal/...
run: go test -v -timeout 30s ./internal/...

test-wasm:
timeout-minutes: 10
strategy:
matrix:
OS: [ubuntu-latest, windows-latest]
Expand Down Expand Up @@ -62,6 +64,7 @@ jobs:
run: pnpm test:ci

lint:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -71,6 +74,7 @@ jobs:
version: latest

lint-js:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
release:
timeout-minutes: 3
name: Changelog
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ defaults:

jobs:
snapshot-release:
timeout-minutes: 3
name: Create a snapshot release of a pull request
if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!preview') }}
runs-on: ubuntu-latest
Expand Down

0 comments on commit 744b30b

Please sign in to comment.