From f9a0a356ed662205c22de677bf70c0d026b73727 Mon Sep 17 00:00:00 2001 From: Timo Tabertshofer Date: Thu, 25 Jan 2024 10:33:45 +0100 Subject: [PATCH] Fix pipeline step --- .github/workflows/ci.yml | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e060c8..97187ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,9 @@ on: pull_request: jobs: -# build-and-test: -# uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/gradle-build-and-test.yml@main -# + build-and-test: + uses: ASE-WS23-GruppeA/workout-tracker/.github/workflows/gradle-build-and-test.yml@main + # test-and-upload-coverage: # runs-on: ubuntu-latest # steps: @@ -45,27 +45,17 @@ jobs: # fail_ci_if_error: true test-performance: + needs: build-and-test runs-on: ubuntu-latest steps: - name: Checkout project sources uses: actions/checkout@v4 - - name: Setup Java JDK - uses: actions/setup-java@v4.0.0 - with: - distribution: 'temurin' - java-version: 21 - - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 - - - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + - name: Download build artifacts + uses: actions/download-artifact@v4 with: - gradle-version: '8.5' - - - name: Execute Gradle build - run: ./gradlew clean assemble + name: 'build_artifact' + path: 'build' - name: Setup docker-compose uses: KengoTODA/actions-setup-docker-compose@v1.2.1 @@ -84,22 +74,25 @@ jobs: test-plan-path: ./performance_tests/test.jmx args: "-e -o ./reports/html/" - - name: Stop docker-compose - run: docker-compose down + - name: Print folder structure + run: ls -la - name: Upload Results uses: actions/upload-artifact@v3 with: name: jmeter-results path: result.jtl - if-no-files-found: error +# if-no-files-found: error - name: Upload HTML Reports uses: actions/upload-artifact@v3 with: name: jmeter-html-reports path: reports - if-no-files-found: error +# if-no-files-found: error + + - name: Stop docker-compose + run: docker-compose down # # build-and-push-docker: # needs: build-and-test