chore(gradle): bump org.freemarker:freemarker from 2.3.33 to 2.3.34 #1197
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/**', 'coverage/**'] | |
jobs: | |
nightly: | |
strategy: | |
fail-fast: false | |
matrix: | |
gradle-task: ['check', 'testSerial', 'testParallel', 'testOutOfBand'] | |
test-jvm-version: ['11', '17', '21', '23'] | |
if: ${{ github.repository_owner == 'deephaven' || github.event_name != 'schedule' }} | |
runs-on: ubuntu-24.04 | |
concurrency: | |
group: ${{ matrix.gradle-task }}-${{ matrix.test-jvm-version }}-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
COVER: ${{ (github.event_name == 'schedule' || startsWith(github.ref_name, 'coverage/')) && matrix.test-jvm-version == '21' }} | |
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: Run gradle ${{ matrix.gradle-task }} on java ${{ matrix.test-jvm-version }} with coverage=${{ env.COVER }} | |
run: ./gradlew --scan --continue --rerun-tasks ${{ matrix.gradle-task }} -PtestRuntimeVersion=${{ matrix.test-jvm-version }} -Pcoverage.enabled=$COVER | |
- name: Upload Coverage Results | |
if: ${{ env.COVER == 'true' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-${{ matrix.gradle-task }}-results | |
path: | | |
**/build/jacoco/*.exec | |
- 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: Upload JVM Error Logs | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: nightly-${{ matrix.gradle-task }}-java${{ matrix.test-jvm-version }}-ci-jvm-err | |
path: | | |
**/*_pid*.log | |
**/core.* | |
if-no-files-found: ignore | |
- 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/slack-github-action@v2.0.0 | |
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 }} | |
combined-coverage-report: | |
if: ${{ github.event_name == 'schedule' || startsWith(github.ref_name, 'coverage/') }} | |
needs: nightly | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Download Coverage Results | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: coverage-*-results | |
merge-multiple: true | |
- name: Setup JDK 21 | |
id: setup-java-21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Setup JDK 11 | |
id: setup-java-11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- 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: Run gradle ${{ matrix.gradle-task }} | |
run: | | |
./gradlew -Pcoverage.enabled=true jacocoTestReport | |
./gradlew -Pcoverage.enabled=true coverage:coverage-merge | |
- name: Upload Combined Coverage Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: combined-coverage-results | |
path: | | |
coverage/build/reports/jacoco/** | |
coverage/build/reports/coverage/** |