🎉 feat(ci): setup Gitea Actions riutilizzabili cross-repo
- Aggiunti 6 workflow condivisi in .gitea/workflows/ con trigger workflow_call - Implementati: quality-gates, npm-publish, docker-release, auto-release, dependency-check, branch-cleanup - Aggiunti esempi consumer per microservizio e libreria-npm (ci, release, maintenance) - Allineato npm run lint:check su tutti i workflow - Corretti GITEA_TOKEN, gitea.* context, GITHUB_REF/GITHUB_OUTPUT per compatibilità Gitea - Rimosso needs: tra job reusable (Gitea bug #31900), path uses: con .gitea/workflows/ Fixes #1 @1d
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Copia in: .gitea/workflows/ci.yml
|
||||
# Usato da: librerie npm pubblicate su registry @pzeta
|
||||
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- 'docs/**'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
quality-gates:
|
||||
uses: pzeta_touch/shared-actions/.gitea/workflows/quality-gates.yml@main
|
||||
secrets: inherit
|
||||
@@ -0,0 +1,22 @@
|
||||
# Copia in: .gitea/workflows/maintenance.yml
|
||||
# Combina branch-cleanup (PR merge) e dependency-check (settimanale)
|
||||
|
||||
name: Maintenance
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
schedule:
|
||||
- cron: '0 8 * * 1'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
branch-cleanup:
|
||||
if: gitea.event_name == 'pull_request' && gitea.event.pull_request.merged == true
|
||||
uses: pzeta_touch/shared-actions/.gitea/workflows/branch-cleanup.yml@main
|
||||
secrets: inherit
|
||||
|
||||
dependency-check:
|
||||
if: gitea.event_name == 'schedule' || gitea.event_name == 'workflow_dispatch'
|
||||
uses: pzeta_touch/shared-actions/.gitea/workflows/dependency-check.yml@main
|
||||
secrets: inherit
|
||||
@@ -0,0 +1,21 @@
|
||||
# Copia in: .gitea/workflows/release.yml
|
||||
# Trigger: git tag v* → pubblica su npm + crea release Gitea
|
||||
#
|
||||
# NOTA: i job girano in parallelo (non sequenziali con needs).
|
||||
# Gitea bug #31900: needs + workflow_call + checkout causa errori di autenticazione.
|
||||
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
npm-publish:
|
||||
uses: pzeta_touch/shared-actions/.gitea/workflows/npm-publish.yml@main
|
||||
secrets: inherit
|
||||
|
||||
auto-release:
|
||||
uses: pzeta_touch/shared-actions/.gitea/workflows/auto-release.yml@main
|
||||
secrets: inherit
|
||||
Reference in New Issue
Block a user