Skip to content

Commit

Permalink
build pr
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Jul 26, 2024
1 parent 35182c1 commit 20d3142
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test

on:
push:
branches:
- main
- 14.0.x
pull_request:
branches:
- main
- 14.0.x

jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- if: github.base_ref == 'main' || github.ref_name == 'main'
name: Start Infinispan Server Latest Version
run: |
docker run -d -p 11222:11222 -e USER="admin" -e PASS="password" quay.io/infinispan-test/server:main
# Wait for server to startup
curl --fail --silent --show-error --retry-all-errors --retry 240 --retry-delay 1 http://localhost:11222/rest/v2/container/health/status > /dev/null
- name: JDK 17 Tests
run: mvn -B clean install artifact:compare -Dmaven.test.failure.ignore=true -Dansi.strip=true

- name: Test Logs
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: jdk17-test-results
path: "**/target/*-reports*/**/TEST-*.xml"

- name: Get thread dump on failure
if: failure()
run: docker kill $(docker ps -q) -s 3

- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1

0 comments on commit 20d3142

Please sign in to comment.