Skip to content

Commit

Permalink
infra: apply shorter CI timeouts and retry e2e once (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Jan 21, 2023
1 parent 2e6b136 commit 54cc87d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- os: windows-latest
node_version: 18
fail-fast: false
timeout-minutes: 10

name: 'Build & Unit Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
Expand Down Expand Up @@ -67,6 +68,7 @@ jobs:
env:
LANG: zh_SG.UTF-8
TZ: Asia/Singapore
timeout-minutes: 10

name: 'Timezone Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
steps:
Expand Down Expand Up @@ -108,6 +110,7 @@ jobs:

e2e-test:
runs-on: ubuntu-latest
timeout-minutes: 15
name: 'E2E Doc Test: node-18, ubuntu-latest'
steps:
- name: Checkout
Expand All @@ -129,11 +132,18 @@ jobs:
- name: Build docs
run: pnpm run docs:build:ci

- name: Run e2e
- id: e2e
name: Run e2e
run: timeout 5m pnpm run docs:test:e2e:run
continue-on-error: true

- name: Run e2e (2nd attempt)
if: ${{ steps.e2e.outcome != 'success' }}
run: pnpm run docs:test:e2e:run

lint:
runs-on: ubuntu-latest
timeout-minutes: 10
name: 'Lint: node-18, ubuntu-latest'
steps:
- name: Checkout
Expand Down Expand Up @@ -165,6 +175,7 @@ jobs:

ts-check-scripts:
runs-on: ubuntu-latest
timeout-minutes: 10
name: 'TS-Check Scripts: node-18, ubuntu-latest'
steps:
- name: Checkout
Expand Down Expand Up @@ -193,6 +204,7 @@ jobs:

ts-check-tests:
runs-on: ubuntu-latest
timeout-minutes: 10
name: 'TS-Check Tests: node-18, ubuntu-latest'
steps:
- name: Checkout
Expand Down Expand Up @@ -221,6 +233,7 @@ jobs:

codecov:
runs-on: ubuntu-latest
timeout-minutes: 10
name: 'Codecov: node-18, ubuntu-latest'
steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:
jobs:
check-code-generation:
runs-on: ubuntu-latest
timeout-minutes: 10
name: 'Check Code Generation: node-18, ubuntu-latest'
permissions:
pull-requests: write
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ on:
- synchronize

permissions: {}

jobs:
main:
permissions:
pull-requests: read # to analyze PRs (amannn/action-semantic-pull-request)
statuses: write # to mark status of analyzed PR (amannn/action-semantic-pull-request)

runs-on: ubuntu-latest
timeout-minutes: 10
name: Semantic Pull Request
steps:
- name: Validate PR title
Expand Down

0 comments on commit 54cc87d

Please sign in to comment.