From 0564da5bb584fd3cf4ab6fad645b1b6f72cd73f7 Mon Sep 17 00:00:00 2001 From: amvanbaren Date: Fri, 17 Nov 2023 11:21:01 +0200 Subject: [PATCH] copy libraries after running gradle --- .github/workflows/sonar.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index b9f5c5b23..a6819f52c 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -57,16 +57,16 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle - - name: Make server libraries directory - run: mkdir server/libraries - - name: Copy server libraries - run: find ~/.gradle/caches -type f -name '*.jar' -exec cp {} server/libraries \; - name: Set up JDK uses: actions/setup-java@v1 with: java-version: 17 - name: Generate JaCoCo test report run: server/gradlew --no-daemon -p server jacocoTestReport + - name: Make server libraries directory + run: mkdir server/libraries + - name: Copy server libraries + run: find ~/.gradle/caches -type f -name '*.jar' -exec cp {} server/libraries \; - name: SonarCloud Scan on PR if: github.event.workflow_run.event == 'pull_request' uses: sonarsource/sonarcloud-github-action@master