Sono state aggiunte azioni per estrarre la versione da un tag, pubblicare un progetto .NET e distribuire su IIS. Queste azioni semplificano il processo di build e deploy per i progetti .NET, migliorando l'integrazione con Gitea Actions.
35 lines
818 B
YAML
35 lines
818 B
YAML
name: Validate Actions
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Valida YAML
|
|
run: |
|
|
for f in */action.yml; do
|
|
echo "Validazione: $f"
|
|
python3 -c "import yaml; yaml.safe_load(open('$f')); print('OK')"
|
|
done
|
|
|
|
- name: Verifica struttura action
|
|
run: |
|
|
required_fields=("name" "runs")
|
|
for f in */action.yml; do
|
|
for field in "${required_fields[@]}"; do
|
|
if ! grep -q "^$field:" "$f"; then
|
|
echo "ERRORE: $f manca del campo '$field'"
|
|
exit 1
|
|
fi
|
|
done
|
|
done
|
|
echo "Struttura azioni valida"
|