From f58fb52681cf9c08aab7fb6c85d71943f36d6121 Mon Sep 17 00:00:00 2001 From: Wiktor Date: Wed, 23 Jul 2025 11:38:17 +0200 Subject: [PATCH] fix(workflows): remove non-existent web-dashboard and add missing services - Remove apps/web-dashboard from security scan matrix (doesn't exist) - Add compression-engine service to microservices and security workflows - Fix CodeQL autobuild by adding explicit Java setup and Gradle build - Add Java 17 setup to performance test workflow - Update build commands to use proper Gradle task syntax Made by Wiktor/overspend1 --- .github/workflows/microservices.yml | 4 ++-- .github/workflows/performance-test.yml | 8 +++++++- .github/workflows/security-scan.yml | 16 ++++++++++++---- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/microservices.yml b/.github/workflows/microservices.yml index 53bb28b..44ca448 100644 --- a/.github/workflows/microservices.yml +++ b/.github/workflows/microservices.yml @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - service: [storage-hal] + service: [storage-hal, compression-engine] steps: - name: Checkout uses: actions/checkout@v4 @@ -185,7 +185,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - service: [backup-engine, storage-hal, ml-optimizer, sync-coordinator] + service: [backup-engine, storage-hal, compression-engine, ml-optimizer, sync-coordinator] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/performance-test.yml b/.github/workflows/performance-test.yml index bd29b35..b4a18dd 100644 --- a/.github/workflows/performance-test.yml +++ b/.github/workflows/performance-test.yml @@ -93,12 +93,18 @@ jobs: IOSTAT_PID=$! echo $IOSTAT_PID > iostat.pid + - name: Set up Java + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Build backup service run: | chmod +x gradlew cd services/backup-engine if [ -f "build.gradle.kts" ]; then - ../../gradlew build + ../../gradlew :services:backup-engine:build -x test --no-daemon else echo "No build file found, creating mock backup service" mkdir -p build diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 9366720..01bfdb1 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -20,14 +20,14 @@ jobs: strategy: matrix: component: - - path: 'apps/web-dashboard' - type: 'npm' - path: 'services/sync-coordinator' type: 'npm' - path: 'apps/daemon' type: 'cargo' - path: 'services/storage-hal' type: 'cargo' + - path: 'services/compression-engine' + type: 'cargo' - path: 'services/ml-optimizer' type: 'pip' - path: '.' @@ -76,8 +76,16 @@ jobs: languages: java, javascript, python, cpp queries: security-and-quality - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + - name: Set up Java + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Build with Gradle + run: | + chmod +x ./gradlew + ./gradlew build -x test --no-daemon - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3