0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

chore(ci): add timeout to all ci jobs (#5374)

Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
Nate Moore 2022-11-11 13:09:01 -06:00 committed by GitHub
parent 8aea2dea61
commit f47fb995c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,8 @@ on:
- main - main
pull_request: pull_request:
paths-ignore: paths-ignore:
- '.vscode/**' - ".vscode/**"
- '**/*.md' - "**/*.md"
# Automatically cancel older in-progress jobs on the same branch # Automatically cancel older in-progress jobs on the same branch
concurrency: concurrency:
@ -23,10 +23,10 @@ env:
FORCE_COLOR: true FORCE_COLOR: true
ASTRO_TELEMETRY_DISABLED: true ASTRO_TELEMETRY_DISABLED: true
jobs: jobs:
lint: lint:
name: Lint name: Lint
timeout-minutes: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out repository - name: Check out repository
@ -39,7 +39,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
cache: 'pnpm' cache: "pnpm"
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@ -65,7 +65,7 @@ jobs:
auto_fix: false auto_fix: false
git_name: fredkbot git_name: fredkbot
git_email: fred+astrobot@astro.build git_email: fred+astrobot@astro.build
commit_message: 'chore(lint): ${linter} fix' commit_message: "chore(lint): ${linter} fix"
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
neutral_check_on_warning: true neutral_check_on_warning: true
@ -76,8 +76,9 @@ jobs:
# Build primes out build caches for Turbo # Build primes out build caches for Turbo
build: build:
name: 'Build: ${{ matrix.os }}' name: "Build: ${{ matrix.os }}"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 3
strategy: strategy:
matrix: matrix:
OS: [ubuntu-latest] OS: [ubuntu-latest]
@ -94,7 +95,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.NODE_VERSION }} node-version: ${{ matrix.NODE_VERSION }}
cache: 'pnpm' cache: "pnpm"
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@ -103,8 +104,9 @@ jobs:
run: pnpm run build run: pnpm run build
test: test:
name: 'Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' name: "Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 25
needs: build needs: build
strategy: strategy:
matrix: matrix:
@ -128,7 +130,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.NODE_VERSION }} node-version: ${{ matrix.NODE_VERSION }}
cache: 'pnpm' cache: "pnpm"
- name: Use Deno - name: Use Deno
uses: denoland/setup-deno@v1 uses: denoland/setup-deno@v1
@ -145,7 +147,7 @@ jobs:
run: pnpm run test run: pnpm run test
e2e: e2e:
name: 'Test (E2E): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' name: "Test (E2E): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 25 timeout-minutes: 25
needs: build needs: build
@ -167,7 +169,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.NODE_VERSION }} node-version: ${{ matrix.NODE_VERSION }}
cache: 'pnpm' cache: "pnpm"
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
@ -179,8 +181,9 @@ jobs:
run: pnpm run test:e2e run: pnpm run test:e2e
smoke: smoke:
name: 'Test (Smoke): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})' name: "Test (Smoke): ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 25
needs: build needs: build
strategy: strategy:
matrix: matrix:
@ -199,7 +202,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.NODE_VERSION }} node-version: ${{ matrix.NODE_VERSION }}
cache: 'pnpm' cache: "pnpm"
- name: Checkout docs - name: Checkout docs
uses: actions/checkout@v3 uses: actions/checkout@v3