🐛 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:
LucaZanni committed 2026-10-20 22:33:53 +02:00
1 parent ddf60dcd2b
commit 3d28471b2c
16 files changed
+143

No files matched your search

+9
View File
@@ -15,14 +15,19 @@ on:
jobs:
dependency-outdated:
runs-on: ubuntu-latest
# 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: 20
defaults:
run:
working-directory: ${{ inputs.working-directory || '.' }}
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' }}
@@ -31,6 +36,7 @@ jobs:
package-manager-cache: false
- name: Cache npm
timeout-minutes: 10
uses: https://gitea.pzetatouch.it/actions/cache@v6
with:
path: ~/.npm
@@ -44,9 +50,11 @@ 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: Check outdated packages
timeout-minutes: 10
id: outdated
run: |
npm outdated --json > outdated.json 2>/dev/null || true
@@ -55,6 +63,7 @@ jobs:
- name: Open issue if packages outdated
if: steps.outdated.outputs.count != '0'
timeout-minutes: 5
env:
GITEA_TOKEN: ${{ gitea.token }}
SERVER_URL: ${{ gitea.server_url }}