Merge pull request 'CI: timeout-minutes on every job' (#61) from ci-timeouts into main
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 22s
CI / Lint (eslint) (push) Successful in 24s
CI / Security (npm audit) (push) Successful in 22s
CI / Integration (api) (push) Successful in 2m44s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m31s
CI / UI (playwright) (push) Successful in 2m22s
CI / Deploy (push) Successful in 26s
CI / Deploy worker (push) Successful in 19s
CI / Notify (push) Successful in 14s
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 22s
CI / Lint (eslint) (push) Successful in 24s
CI / Security (npm audit) (push) Successful in 22s
CI / Integration (api) (push) Successful in 2m44s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m31s
CI / UI (playwright) (push) Successful in 2m22s
CI / Deploy (push) Successful in 26s
CI / Deploy worker (push) Successful in 19s
CI / Notify (push) Successful in 14s
This commit was merged in pull request #61.
This commit is contained in:
commit
0746c9cf73
1 file changed
+10
@@ -27,6 +27,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: Lint (eslint)
|
name: Lint (eslint)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20 # a hung step fails instead of blocking main
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -46,6 +47,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Test (jest)
|
name: Test (jest)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -57,6 +59,7 @@ jobs:
|
|||||||
audit:
|
audit:
|
||||||
name: Security (npm audit)
|
name: Security (npm audit)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -85,6 +88,7 @@ jobs:
|
|||||||
integration:
|
integration:
|
||||||
name: Integration (api)
|
name: Integration (api)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 25
|
||||||
container: node:20-bookworm # the server and workers on production's Node
|
container: node:20-bookworm # the server and workers on production's Node
|
||||||
env:
|
env:
|
||||||
DB_HOST: 127.0.0.1
|
DB_HOST: 127.0.0.1
|
||||||
@@ -109,6 +113,7 @@ jobs:
|
|||||||
scan:
|
scan:
|
||||||
name: Scan (secrets, workflows, shell)
|
name: Scan (secrets, workflows, shell)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
||||||
@@ -147,6 +152,7 @@ jobs:
|
|||||||
ui:
|
ui:
|
||||||
name: UI (playwright)
|
name: UI (playwright)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
# Official image with Chromium and its system libraries; its version must match
|
# Official image with Chromium and its system libraries; its version must match
|
||||||
# @playwright/test in package.json.
|
# @playwright/test in package.json.
|
||||||
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
||||||
@@ -182,6 +188,7 @@ jobs:
|
|||||||
ui-screenshots:
|
ui-screenshots:
|
||||||
name: UI screenshots (before/after)
|
name: UI screenshots (before/after)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
container: mcr.microsoft.com/playwright:v1.64.1-noble
|
||||||
env:
|
env:
|
||||||
@@ -231,6 +238,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
needs: [lint, test, audit, scan, integration, ui]
|
needs: [lint, test, audit, scan, integration, ui]
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
# Never run two deploys at once; queue instead of cancelling a deploy mid-way.
|
# Never run two deploys at once; queue instead of cancelling a deploy mid-way.
|
||||||
@@ -290,6 +298,7 @@ jobs:
|
|||||||
deploy-worker:
|
deploy-worker:
|
||||||
name: Deploy worker
|
name: Deploy worker
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
container: node:20-bookworm
|
container: node:20-bookworm
|
||||||
needs: [deploy] # the server first: it must understand anything new the worker sends
|
needs: [deploy] # the server first: it must understand anything new the worker sends
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
@@ -356,6 +365,7 @@ jobs:
|
|||||||
notify:
|
notify:
|
||||||
name: Notify
|
name: Notify
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 5
|
||||||
needs: [lint, test, audit, scan, integration, ui, deploy, deploy-worker]
|
needs: [lint, test, audit, scan, integration, ui, deploy, deploy-worker]
|
||||||
# Alert on any failure on main or in the weekly audit, and on every deploy outcome.
|
# Alert on any failure on main or in the weekly audit, and on every deploy outcome.
|
||||||
if: >-
|
if: >-
|
||||||
|
|||||||
Reference in new issue
Block a user