🐛 fix(ci): ogni workflow condiviso ha un timeout, sul job e sui passi di rete
- timeout-minutes sul job di tutti e 16 i workflow riusabili: 10 per branch-cleanup, 15-20 per release e manutenzione, 30 per i quality gates e le pubblicazioni, 45 per le immagini Docker, 60 per la build Android - timeout-minutes su 95 passi che dipendono dalla rete (checkout, setup-*, cache, install, audit, login, push, upload): con il solo timeout sul job il log non dice quale passo si è impiantato, con questi sì - valori letterali e non input: su un job che chiama un workflow riusabile timeout-minutes non è una chiave ammessa, quindi il limite può stare solo qui, e i valori scelti sono già ampi rispetto alla durata reale dei job Fixes #23 @1h30m
This commit is contained in:
1 parent
ddf60dcd2b
commit
3d28471b2c
16 files changed
+143
No files matched your search
@@ -16,11 +16,16 @@ on:
|
||||
jobs:
|
||||
docker-release:
|
||||
runs-on: ${{ inputs.runner }}
|
||||
# Il chiamante non puo' dichiararlo: su un job che usa un workflow
|
||||
# riusabile timeout-minutes non e' una chiave ammessa (devops/shared-actions#23).
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- name: Checkout
|
||||
timeout-minutes: 10
|
||||
uses: https://gitea.pzetatouch.it/actions/checkout@v7
|
||||
|
||||
- name: Setup Node.js
|
||||
timeout-minutes: 10
|
||||
uses: https://gitea.pzetatouch.it/actions/setup-node@v7
|
||||
with:
|
||||
node-version: ${{ inputs.node-version || '24.16.0' }}
|
||||
@@ -30,9 +35,11 @@ jobs:
|
||||
|
||||
- name: Upgrade npm
|
||||
if: inputs.npm-version != ''
|
||||
timeout-minutes: 10
|
||||
run: npm install -g npm@${{ inputs.npm-version }}
|
||||
|
||||
- name: Cache npm
|
||||
timeout-minutes: 10
|
||||
uses: https://gitea.pzetatouch.it/actions/cache@v6
|
||||
with:
|
||||
path: ~/.npm
|
||||
@@ -46,6 +53,7 @@ jobs:
|
||||
echo "//gitea.pzetatouch.it/api/packages/PZeta_Touch/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
|
||||
|
||||
- name: Install dependencies
|
||||
timeout-minutes: 15
|
||||
run: npm ci
|
||||
|
||||
- name: Type check
|
||||
@@ -58,12 +66,15 @@ jobs:
|
||||
run: npm run format:check
|
||||
|
||||
- name: Build
|
||||
timeout-minutes: 15
|
||||
run: npm run build
|
||||
|
||||
- name: Test
|
||||
timeout-minutes: 20
|
||||
run: npm run test
|
||||
|
||||
- name: Login to container registry
|
||||
timeout-minutes: 5
|
||||
uses: https://gitea.pzetatouch.it/actions/login-action@v4
|
||||
with:
|
||||
registry: gitea.pzetatouch.it
|
||||
@@ -82,6 +93,7 @@ jobs:
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push Docker image
|
||||
timeout-minutes: 30
|
||||
uses: https://gitea.pzetatouch.it/actions/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
|
||||
Reference in new issue
Block a user