aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml15
-rw-r--r--.github/workflows/pr.yml1
-rw-r--r--.github/workflows/semantic-pull-request.yml2
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