Run all checks, drop java 11 #1166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Check CI | |
on: | |
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule | |
# Note: this will set GITHUB_SHA to the latest commit on the default branch. | |
schedule: | |
# 2AM EST == 6AM UTC | |
- cron: '0 6 * * *' | |
push: | |
branches: [ 'nightly/**', 'release/v*', 'dependabot/**' ] | |
jobs: | |
nightly: | |
strategy: | |
fail-fast: false | |
matrix: | |
gradle-task: ['a', 'b', 'c', 'd', 'e'] | |
test-jvm-version: ['17', '21', '23'] | |
if: ${{ github.repository_owner == 'deephaven' || github.event_name != 'schedule' }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Setup JDK 11 | |
id: setup-java-11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Setup JDK 17 | |
id: setup-java-17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Setup JDK 21 | |
id: setup-java-21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup JDK 23 | |
id: setup-java-23 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '23' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Set JAVA_HOME | |
run: echo "JAVA_HOME=${{ steps.setup-java-11.outputs.path }}" >> $GITHUB_ENV | |
- name: Setup gradle properties | |
run: | | |
.github/scripts/gradle-properties.sh >> gradle.properties | |
cat gradle.properties | |
# - name: Check out Jetty | |
# uses: actions/checkout@v4 | |
# with: | |
# repository: 'eclipse/jetty.project' | |
# path: 'jetty.project' | |
# ref: 'jetty-12.0.16' | |
# fetch-depth: '0' | |
# - name: Revert vers bump, and build only what we need for our test | |
# run: | | |
# git config --global user.email "[email protected]" | |
# git config --global user.name "colin" | |
# cd jetty.project | |
# git checkout a3f6bdad22b | |
# #git revert --no-edit 8259eab | |
# mvn clean install -Dmaven.test.skip -DskipTests -am -pl org.eclipse.jetty:jetty-alpn-java-server,org.eclipse.jetty:jetty-alpn-server,org.eclipse.jetty:jetty-bom,org.eclipse.jetty.http2:http2-server,org.eclipse.jetty:jetty-servlet,org.eclipse.jetty:jetty-servlets,org.eclipse.jetty:jetty-webapp,org.eclipse.jetty.websocket:websocket-jakarta-server | |
- name: Run gradle ${{ matrix.gradle-task }} on java ${{ matrix.test-jvm-version }} | |
run: ./gradlew --scan --continue --rerun-tasks check -PtestRuntimeVersion=${{ matrix.test-jvm-version }} | |
- name: Upload Test Results | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: nightly-${{ matrix.gradle-task }}-java${{ matrix.test-jvm-version }}-ci-results | |
path: | | |
**/build/test-results/** | |
**/build/reports/tests/** | |
- name: Publish Test Results | |
uses: scacap/action-surefire-report@v1 | |
if: ${{ github.repository_owner == 'deephaven' && github.ref == 'refs/heads/main' }} | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
with: | |
# We have to make a unique report per run https://github.com/ScaCap/action-surefire-report/issues/70 | |
check_name: check report ${{ matrix.gradle-task }} java${{ matrix.test-jvm-version }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
report_paths: '**/build/test-results/*/TEST-*.xml' | |
- name: Slack Nightly Failure | |
uses: slackapi/[email protected] | |
id: slack-nightly-failure | |
if: ${{ failure() && github.repository_owner == 'deephaven' && github.ref == 'refs/heads/main' }} | |
with: | |
webhook-type: webhook-trigger | |
payload: | | |
{ | |
"slack_message": "Nightly build failure in ${{ matrix.gradle-task }} on Java ${{ matrix.test-jvm-version }} @ ${{ github.head_ref }} ${{ github.sha }}" ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_NIGHTLY_FAILURE }} |