forked from eclipse-ee4j/glassfish
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.87 KB
/
test-slowdown.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
name: Test slowdown
on:
workflow_dispatch:
push:
branches: [ "feature/testSlowdown" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
develocity: [true, false]
goals: ["clean install -Pfastest -T4C -Dscan.tag.fastest", "clean install"]
cache: ["-Ddevelocity.cache.local.enabled=false -Dscan.tag.slowdown_no_cache", "-Ddevelocity.cache.local.enabled=true -Dscan.tag.slowdown_cache"]
exclude:
- develocity: false
cache: "-Ddevelocity.cache.local.enabled=false -Dscan.tag.slowdown_no_cache"
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
- name: Conditionally remove Develocity and CCUD extensions
if: matrix.develocity == false
run: rm .mvn/extensions.xml
- name: Build with Maven
id: build
run: |
./repeat.sh "mvn ${{ matrix.goals }} ${{ matrix.cache }} -Ddevelocity.url=https://ge.solutions-team.gradle.com/"
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_API_TOKEN }}
- name: Set summary
if: always()
run: |
echo "## Summary" >> $GITHUB_STEP_SUMMARY
echo "Develocity: ${{ matrix.develocity }}" >> $GITHUB_STEP_SUMMARY
echo "Goals: ${{ matrix.goals }}" >> $GITHUB_STEP_SUMMARY
echo "Cache: ${{ matrix.cache }}" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.build.outputs.times }}" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.build.outputs.average }}" >> $GITHUB_STEP_SUMMARY
echo "### Steps & scans" >> $GITHUB_STEP_SUMMARY
cat times.txt >> $GITHUB_STEP_SUMMARY