File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build nightly
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 0 * * 1-5'
6+ workflow_dispatch :
7+ branches :
8+ - development
9+
10+ defaults :
11+ run :
12+ shell : bash
13+
14+ jobs :
15+ test :
16+ if : github.ref == 'refs/heads/development'
17+ runs-on : ubuntu-22.04
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - name : Setup Java
22+ uses : actions/setup-java@v4
23+ with :
24+ java-version : ' 17'
25+ distribution : ' temurin'
26+ cache : maven
27+
28+ - name : Start Infinispan Server SNAPSHOT Version
29+ run : |
30+ docker run -d -p 11222:11222 -e USER="admin" -e PASS="password" quay.io/infinispan-test/server:main
31+ # Wait for server to startup
32+ curl --fail --silent --show-error --retry-all-errors --retry 240 --retry-delay 1 http://localhost:11222/rest/v2/container/health/status > /dev/null
33+
34+ - name : JDK 17 Tests
35+ run : ./mvnw -B clean install -Dmaven.test.failure.ignore=true
36+
37+ - name : Test Logs
38+ uses : actions/upload-artifact@v4
39+ if : success() || failure()
40+ with :
41+ name : jdk17-test-results
42+ path : " **/target/*-reports*/**/TEST-*.xml"
43+
44+ - name : Get thread dump on failure
45+ if : failure()
46+ run : docker kill $(docker ps -q) -s 3
47+
48+ - name : Dump docker logs on failure
49+ if : failure()
50+ uses : jwalton/gh-docker-logs@v2
You can’t perform that action at this time.
0 commit comments