fix(deploy): cicd.yaml
Some checks failed
Build, Test, Deploy and Analysis / qodana (pull_request) Failing after 12s
Build, Test, Deploy and Analysis / build-and-push (pull_request) Has been skipped
Build, Test, Deploy and Analysis / deploy (pull_request) Has been skipped
Build, Test, Deploy and Analysis / test-backend (pull_request) Successful in 39s
Build, Test, Deploy and Analysis / qodana (push) Has been skipped
Build, Test, Deploy and Analysis / test-backend (push) Has been skipped
Build, Test, Deploy and Analysis / build-and-push (push) Successful in 17s
Build, Test, Deploy and Analysis / deploy (push) Successful in 8s

This commit is contained in:
2026-03-03 12:33:18 +01:00
parent c680486157
commit be8e523574

View File

@@ -3,6 +3,8 @@ name: Build, Test, Deploy and Analysis
on:
push:
branches: [main, int, dev]
pull_request:
branches: [main, int, dev]
workflow_dispatch:
concurrency:
@@ -12,6 +14,7 @@ concurrency:
jobs:
# --- JOB DI ANALISI (In parallelo) ---
qodana:
if: ${{ gitea.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -19,11 +22,19 @@ jobs:
with:
fetch-depth: 0 # Fondamentale per Qodana per analizzare la storia
- name: Prepare Qodana directories
shell: bash
run: |
mkdir -p .qodana/caches .qodana/results
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2025.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
cache-dir: .qodana/caches
results-dir: .qodana/results
args: -i,backend
# In Gitea, pr-mode funziona se il runner ha accesso ai dati del clone
pr-mode: ${{ gitea.event_name == 'pull_request' }}
use-caches: false
@@ -32,6 +43,7 @@ jobs:
post-pr-comment: false
use-annotations: true
test-backend:
if: ${{ gitea.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -50,7 +62,7 @@ jobs:
./gradlew test
build-and-push:
needs: test-backend
if: ${{ gitea.event_name == 'push' || gitea.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -101,6 +113,7 @@ jobs:
deploy:
needs: build-and-push
if: ${{ gitea.event_name == 'push' || gitea.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout