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