CI IT Performance #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI IT Performance | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 1' | |
jobs: | |
test: | |
name: Performance IT | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'liberica' | |
- uses: jvalkeal/setup-maven@v1 | |
with: | |
maven-version: 3.8.8 | |
maven-mirror: 'https://dlcdn.apache.org/maven/maven-3/' | |
- name: Login dockerhub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Run Performance IT | |
run: | | |
mvn clean install -DskipTests -T 1C -s .settings.xml -pl spring-cloud-dataflow-server -am | |
mvn \ | |
-s .settings.xml \ | |
-pl spring-cloud-dataflow-server \ | |
-Dgroups=performance \ | |
-Pfailsafe \ | |
--batch-mode \ | |
test | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: ${{ success() || failure() }} | |
with: | |
name: Integration Tests | |
path: '**/surefire-reports/*.xml' | |
reporter: java-junit | |
list-tests: failed | |
- name: 'Action: Upload Unit Test Results' | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.group }}-test-results-surefire | |
path: './**/target/surefire-reports/**/*.*' | |
retention-days: 7 | |
if-no-files-found: ignore | |
- name: 'Action: Upload Integration Test Results' | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.group }}-test-results-failsafe | |
path: './**/target/failsafe-reports/**/*.*' | |
retention-days: 7 | |
if-no-files-found: ignore |