Skip to content

Commit 2dafffb

Browse files
committed
Merge branch 'main' into argument-count-validation-mode
2 parents a986bba + 6157803 commit 2dafffb

File tree

100 files changed

+2024
-207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+2024
-207
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
# These are supported funding model platforms
2-
3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
81
custom: https://junit.org/sponsoring

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/actions/main-build/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ inputs:
55
required: true
66
description: Gradle arguments
77
default: :platform-tooling-support-tests:test build --configuration-cache
8+
encryptionKey:
9+
required: true
10+
description: Gradle cache encryption key
811
runs:
912
using: "composite"
1013
steps:
1114
- uses: ./.github/actions/setup-test-jdk
1215
- uses: ./.github/actions/run-gradle
1316
with:
1417
arguments: ${{ inputs.arguments }}
18+
encryptionKey: ${{ inputs.encryptionKey }}
19+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
20+
if: ${{ always() }}
21+
with:
22+
name: Open Test Reports (${{ github.job }})
23+
path: '**/build/reports/open-test-report.html'

.github/actions/run-gradle/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,21 @@ inputs:
55
required: true
66
description: Gradle arguments
77
default: build
8+
encryptionKey:
9+
required: true
10+
description: Gradle cache encryption key
811
runs:
912
using: "composite"
1013
steps:
11-
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
14+
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
1215
id: setup-gradle-jdk
1316
with:
1417
distribution: temurin
1518
java-version: 21
1619
check-latest: true
1720
- uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4
21+
with:
22+
cache-encryption-key: ${{ inputs.encryptionKey }}
1823
- shell: bash
1924
env:
2025
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}

.github/actions/setup-test-jdk/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
11+
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
1212
with:
1313
distribution: ${{ inputs.distribution }}
1414
java-version: 8

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,17 @@ jobs:
3434
- name: Check out repository
3535
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3636
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@662472033e021d55d94146f66f6058822b0b39fd # v3
37+
uses: github/codeql-action/init@9278e421667d5d90a2839487a482448c4ec7df4d # v3
3838
with:
3939
languages: ${{ matrix.language }}
4040
tools: linked
4141
- name: Build
4242
uses: ./.github/actions/run-gradle
4343
with:
44+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
4445
arguments: |
4546
--no-build-cache \
4647
-Dscan.tag.CodeQL \
4748
allMainClasses
4849
- name: Perform CodeQL Analysis
49-
uses: github/codeql-action/analyze@662472033e021d55d94146f66f6058822b0b39fd # v3
50+
uses: github/codeql-action/analyze@9278e421667d5d90a2839487a482448c4ec7df4d # v3

.github/workflows/cross-version.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
version: latest
5050
- name: "Set up JDK ${{ matrix.jdk.version }} (${{ matrix.jdk.distribution || 'temurin' }})"
5151
if: matrix.jdk.type == 'ga'
52-
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
52+
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
5353
with:
5454
distribution: ${{ matrix.jdk.distribution || 'temurin' }}
5555
java-version: ${{ matrix.jdk.version }}
@@ -60,11 +60,17 @@ jobs:
6060
- name: Build
6161
uses: ./.github/actions/run-gradle
6262
with:
63+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
6364
arguments: |
6465
-PjavaToolchain.version=${{ matrix.jdk.version }} \
6566
-Dscan.tag.JDK_${{ matrix.jdk.version }} \
6667
build \
6768
--configuration-cache
69+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
70+
if: ${{ always() }}
71+
with:
72+
name: Open Test Reports (${{ github.job }} ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }}))
73+
path: '**/build/reports/open-test-report.html'
6874
openj9:
6975
strategy:
7076
fail-fast: false
@@ -82,7 +88,7 @@ jobs:
8288
with:
8389
distribution: semeru
8490
- name: 'Set up JDK ${{ matrix.jdk }}'
85-
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
91+
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
8692
with:
8793
distribution: semeru
8894
java-version: ${{ matrix.jdk }}
@@ -93,10 +99,16 @@ jobs:
9399
- name: Build
94100
uses: ./.github/actions/run-gradle
95101
with:
102+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
96103
arguments: |
97104
-PjavaToolchain.version=${{ matrix.jdk }} \
98105
-PjavaToolchain.implementation=j9 \
99106
-Dscan.tag.JDK_${{ matrix.jdk }} \
100107
-Dscan.tag.OpenJ9 \
101108
build \
102109
--configuration-cache
110+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
111+
if: ${{ always() }}
112+
with:
113+
name: Open Test Reports (${{ github.job }})
114+
path: '**/build/reports/open-test-report.html'

.github/workflows/gradle-dependency-submission.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
fetch-depth: 1
2121
- name: Setup Java
22-
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4
22+
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
2323
with:
2424
distribution: temurin
2525
java-version: 21

.github/workflows/main.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
fetch-depth: 1
2525
- name: Install GraalVM
26-
uses: graalvm/setup-graalvm@6f327093bb6a42fe5eac053d21b168c46aa46f22 # v1
26+
uses: graalvm/setup-graalvm@3aaf71e276c9159bbdfbcdab8abc50c95f41a2c8 # v1
2727
with:
2828
distribution: graalvm-community
2929
version: 'latest'
@@ -32,6 +32,7 @@ jobs:
3232
- name: Build
3333
uses: ./.github/actions/main-build
3434
with:
35+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3536
arguments: |
3637
-Ptesting.enableJaCoCo \
3738
:platform-tooling-support-tests:test \
@@ -52,6 +53,8 @@ jobs:
5253
fetch-depth: 1
5354
- name: Build
5455
uses: ./.github/actions/main-build
56+
with:
57+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
5558

5659
macOS:
5760
runs-on: macos-latest
@@ -62,10 +65,12 @@ jobs:
6265
fetch-depth: 1
6366
- name: Build
6467
uses: ./.github/actions/main-build
68+
with:
69+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
6570

6671
publish_artifacts:
6772
name: Publish Snapshot Artifacts
68-
needs: linux
73+
needs: Linux
6974
runs-on: ubuntu-latest
7075
permissions:
7176
attestations: write # required for build provenance attestation
@@ -82,11 +87,12 @@ jobs:
8287
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
8388
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
8489
with:
90+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
8591
arguments: |
8692
publish -x check \
8793
prepareGitHubAttestation
8894
- name: Generate build provenance attestations
89-
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
95+
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
9096
with:
9197
subject-path: documentation/build/attestation/*.jar
9298

@@ -109,13 +115,15 @@ jobs:
109115
- name: Build Documentation
110116
uses: ./.github/actions/run-gradle
111117
with:
118+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
112119
arguments: |
113120
prepareDocsForUploadToGhPages \
114121
-Dscan.tag.Documentation
115122
- name: Upload Documentation
116123
if: github.event_name == 'push' && github.repository == 'junit-team/junit5' && github.ref == 'refs/heads/main'
117124
uses: ./.github/actions/run-gradle
118125
with:
126+
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
119127
arguments: |
120128
gitPublishPush \
121129
-Dscan.tag.Documentation

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757
# Upload the results to GitHub's code scanning dashboard (optional).
5858
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3
60+
uses: github/codeql-action/upload-sarif@9278e421667d5d90a2839487a482448c4ec7df4d # v3
6161
with:
6262
sarif_file: results.sarif

0 commit comments

Comments
 (0)