Skip to content

Commit 2059e51

Browse files
committed
Stress test the build
1 parent 50fa886 commit 2059e51

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Stress Test the Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
name: Test
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os:
19+
- windows-latest
20+
test-java-version:
21+
- 8
22+
run-number: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
23+
steps:
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+
26+
- id: setup-java-test
27+
name: Set up Java ${{ matrix.test-java-version }} for tests
28+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
29+
with:
30+
distribution: temurin
31+
java-version: ${{ matrix.test-java-version }}
32+
33+
- id: setup-java
34+
name: Set up Java for build
35+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
36+
with:
37+
distribution: temurin
38+
java-version: 17
39+
40+
- name: Set up gradle
41+
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
42+
with:
43+
cache-read-only: ${{ inputs.cache-read-only }}
44+
45+
- name: Gradle test
46+
run: >
47+
./gradlew test
48+
"-PtestJavaVersion=${{ matrix.test-java-version }}"
49+
"-Porg.gradle.java.installations.paths=${{ steps.setup-java-test.outputs.path }}"
50+
"-Porg.gradle.java.installations.auto-download=false"
51+
--no-build-cache
52+
--rerun-tasks

0 commit comments

Comments
 (0)