Skip to content

Commit

Permalink
Fix pipeline step
Browse files Browse the repository at this point in the history
  • Loading branch information
SyzSteM committed Jan 25, 2024
1 parent 7bc615a commit f9a0a35
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/[email protected]
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/[email protected]
Expand All @@ -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
Expand Down

0 comments on commit f9a0a35

Please sign in to comment.