2022-05-17 20:26:06 -04:00
name : Distribution tests
on :
# Allow manual triggers for testing the action.
workflow_dispatch :
pull_request :
branches :
- 'main'
push :
branches :
2022-05-17 20:42:49 -04:00
- 'main'
2022-05-17 20:26:06 -04:00
2022-09-20 05:28:07 -04:00
permissions :
contents : read # to fetch code (actions/checkout)
2022-05-17 20:26:06 -04:00
jobs :
test :
name : Run distribution tests
2023-10-17 02:02:53 -04:00
timeout-minutes : 15
2022-05-17 20:26:06 -04:00
runs-on : ${{ matrix.os }}
strategy :
matrix :
2022-05-21 10:46:07 -04:00
# we want to run the distribution tests on all major OSs, but it's occasionally too slow (or hangs or the forked process is not started at all..., not sure the cause) on windows.
#os: [ubuntu-latest, macos-latest, windows-latest]
os : [ ubuntu-latest, macos-latest]
2023-10-24 12:32:18 -04:00
env :
GRADLE_ENTERPRISE_ACCESS_KEY : ${{ secrets.GE_ACCESS_TOKEN }}
2022-05-17 20:26:06 -04:00
steps :
2022-11-14 13:50:52 -05:00
- uses : actions/checkout@v3
2022-05-17 20:26:06 -04:00
- name : Set up JDK
2022-11-14 13:50:52 -05:00
uses : actions/setup-java@v3
2022-05-17 20:26:06 -04:00
with :
distribution : 'temurin'
java-version : 17
java-package : jdk
- name : Prepare caches
uses : ./.github/actions/gradle-caches
- name : Run all distribution tests including GUI tests (${{ matrix.os }})
run : ./gradlew -p lucene/distribution.tests test