From c803bd98b5a84dd06fcfa2c2d5dd249b4c3bb229 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 13 Oct 2026 14:47:35 +0000 Subject: [PATCH] CI: verifica a ogni push e pull request Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA --- .gitea/workflows/verifica.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/verifica.yml diff --git a/.gitea/workflows/verifica.yml b/.gitea/workflows/verifica.yml new file mode 100644 index 0000000..e3b9896 --- /dev/null +++ b/.gitea/workflows/verifica.yml @@ -0,0 +1,37 @@ +# Verifica a ogni push e a ogni pull request: compilazione con gli avvisi come errori +# (compreso Febe.Desktop, che si compila anche da Linux) e tutte le prove. +# Le prove che richiedono Chromium e Xvfb si saltano da sole se il runner non li ha. +# +# Runner: act_runner con l'etichetta ubuntu-latest. +name: verifica + +on: + push: + branches: [main, febe-v1] + pull_request: + +jobs: + prove: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: "10.0.x" + + - name: Compilazione (avvisi = errori) + run: dotnet build Febe.slnx -c Release -nologo -warnaserror + + - name: Prove + run: >- + dotnet test tests/Febe.Tests -c Release --no-build --nologo + --logger "trx;LogFileName=prove.trx" --results-directory out/prove + + - name: Risultati + if: always() + uses: actions/upload-artifact@v3 + with: + name: risultati-prove + path: out/prove/*.trx + if-no-files-found: ignore