Introduce --redirect-stdout
and --redirect-stderr
CLI options to redirect STDOUT and STDERR
#4087
Workflow file for this run
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: Cross-Version | |
on: | |
push: | |
branches: | |
- main | |
- 'releases/**' | |
pull_request: | |
branches: | |
- '*' | |
env: | |
JUNIT_DEVELOCITY_TESTDISTRIBUTION_ENABLED: true | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
jobs: | |
openjdk: | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: [22] | |
name: "OpenJDK ${{ matrix.jdk }}" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Test JDK | |
uses: ./.github/actions/setup-test-jdk | |
- name: 'Set up JDK ${{ matrix.jdk }}' | |
uses: oracle-actions/setup-java@v1 | |
with: | |
website: jdk.java.net | |
release: ${{ matrix.jdk }} | |
version: latest | |
- name: 'Prepare JDK${{ matrix.jdk }} env var' | |
shell: bash | |
run: echo "JDK${{ matrix.jdk }}=$JAVA_HOME" >> $GITHUB_ENV | |
- name: Build | |
uses: ./.github/actions/run-gradle | |
with: | |
arguments: | | |
-PjavaToolchainVersion=${{ matrix.jdk }} | |
-Dscan.tag.JDK_${{ matrix.jdk }} | |
build | |
- name: Upload Test Distribution trace files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Test Distribution trace files (OpenJDK ${{ matrix.jdk }})" | |
path: '**/build/test-results/*/trace.json' |