diff options
| author | ST-DDT <[email protected]> | 2023-01-21 17:59:58 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-21 17:59:58 +0100 |
| commit | 54cc87d3ff88608bbede7bd321516cd866b99b6d (patch) | |
| tree | e21cabc5a13c89cc18150e2888c3b340e291c560 /.github/workflows | |
| parent | 2e6b136c61a7cfc799c72a86a38ca4a505d94e3c (diff) | |
| download | faker-54cc87d3ff88608bbede7bd321516cd866b99b6d.tar.xz faker-54cc87d3ff88608bbede7bd321516cd866b99b6d.zip | |
infra: apply shorter CI timeouts and retry e2e once (#1756)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 15 | ||||
| -rw-r--r-- | .github/workflows/pr.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/semantic-pull-request.yml | 2 |
3 files changed, 17 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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8e533add..f5c64823 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index d6529a87..75b40cde 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -8,6 +8,7 @@ on: - synchronize permissions: {} + jobs: main: permissions: @@ -15,6 +16,7 @@ jobs: 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 |
