aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-01-21 17:59:58 +0100
committerGitHub <[email protected]>2023-01-21 17:59:58 +0100
commit54cc87d3ff88608bbede7bd321516cd866b99b6d (patch)
treee21cabc5a13c89cc18150e2888c3b340e291c560 /.github/workflows/ci.yml
parent2e6b136c61a7cfc799c72a86a38ca4a505d94e3c (diff)
downloadfaker-54cc87d3ff88608bbede7bd321516cd866b99b6d.tar.xz
faker-54cc87d3ff88608bbede7bd321516cd866b99b6d.zip
infra: apply shorter CI timeouts and retry e2e once (#1756)
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6be030eb..a5c1ec6a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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:
@@ -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:
@@ -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
@@ -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
@@ -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
@@ -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
@@ -221,6 +233,7 @@ jobs:
codecov:
runs-on: ubuntu-latest
+ timeout-minutes: 10
name: 'Codecov: node-18, ubuntu-latest'
steps:
- name: Checkout