-
Notifications
You must be signed in to change notification settings - Fork 582
65 lines (61 loc) · 1.97 KB
/
ci-it-performance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI IT Performance
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
jobs:
test:
name: Performance IT
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: find . -type f -name "*.sh" -exec chmod a+x '{}' \;
- uses: actions/setup-java@v3
with:
java-version: '17'
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: |
./mvnw clean install -DskipTests -T 1C -s .settings.xml -pl spring-cloud-dataflow-server -am -B --no-transfer-progress
./mvnw -s .settings.xml \
-pl spring-cloud-dataflow-server \
-Dgroups=performance \
-Pfailsafe \
--batch-mode --no-transfer-progress \
verify
- 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