diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b34b8ec9a..ea1b047f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,7 @@ concurrency: jobs: test: + timeout-minutes: 3 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -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] @@ -62,6 +64,7 @@ jobs: run: pnpm test:ci lint: + timeout-minutes: 3 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -71,6 +74,7 @@ jobs: version: latest lint-js: + timeout-minutes: 3 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42400ce9f..0168094ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: jobs: release: + timeout-minutes: 3 name: Changelog runs-on: ubuntu-latest steps: diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index 948997ec0..baee86956 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -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