Skip to content

Commit eb68f54

Browse files
authored
Merge branch 'junit-team:main' into file_source_reuse
2 parents bf8423e + 0fd3eb3 commit eb68f54

File tree

842 files changed

+12421
-6567
lines changed

Some content is hidden

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

842 files changed

+12421
-6567
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/junit-team/junit5/discussions/categories/q-a
4+
url: https://github.com/junit-team/junit-framework/discussions/categories/q-a
55
about: Please ask and answer questions here
66
- name: Ask a question (Stack Overflow)
77
url: https://stackoverflow.com/questions/tagged/junit5

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
## Overview
2-
31
<!-- Please describe your changes here and list any open questions you might have. -->
42

53
---
64

7-
I hereby agree to the terms of the [JUnit Contributor License Agreement](https://github.com/junit-team/junit5/blob/002a0052926ddee57cf90580fa49bc37e5a72427/CONTRIBUTING.md#junit-contributor-license-agreement).
5+
I hereby agree to the terms of the [JUnit Contributor License Agreement](https://github.com/junit-team/junit-framework/blob/002a0052926ddee57cf90580fa49bc37e5a72427/CONTRIBUTING.md#junit-contributor-license-agreement).
86

97
---
108

119
### Definition of Done
1210

1311
- [ ] There are no TODOs left in the code
14-
- [ ] Method [preconditions](https://junit.org/junit5/docs/snapshot/api/org.junit.platform.commons/org/junit/platform/commons/util/Preconditions.html) are checked and documented in the method's Javadoc
15-
- [ ] [Coding conventions](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#coding-conventions) (e.g. for logging) have been followed
16-
- [ ] Change is covered by [automated tests](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#tests) including corner cases, errors, and exception handling
17-
- [ ] Public API has [Javadoc](https://github.com/junit-team/junit5/blob/HEAD/CONTRIBUTING.md#javadoc) and [`@API` annotations](https://apiguardian-team.github.io/apiguardian/docs/current/api/org/apiguardian/api/API.html)
18-
- [ ] Change is documented in the [User Guide](https://junit.org/junit5/docs/snapshot/user-guide/) and [Release Notes](https://junit.org/junit5/docs/snapshot/user-guide/#release-notes)
12+
- [ ] Method [preconditions](https://docs.junit.org/snapshot/api/org.junit.platform.commons/org/junit/platform/commons/util/Preconditions.html) are checked and documented in the method's Javadoc
13+
- [ ] [Coding conventions](https://github.com/junit-team/junit-framework/blob/HEAD/CONTRIBUTING.md#coding-conventions) (e.g. for logging) have been followed
14+
- [ ] Change is covered by [automated tests](https://github.com/junit-team/junit-framework/blob/HEAD/CONTRIBUTING.md#tests) including corner cases, errors, and exception handling
15+
- [ ] Public API has [Javadoc](https://github.com/junit-team/junit-framework/blob/HEAD/CONTRIBUTING.md#javadoc) and [`@API` annotations](https://apiguardian-team.github.io/apiguardian/docs/current/api/org/apiguardian/api/API.html)
16+
- [ ] Change is documented in the [User Guide](https://docs.junit.org/snapshot/user-guide/) and [Release Notes](https://docs.junit.org/snapshot/user-guide/#release-notes)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
arguments:
55
required: true
66
description: Gradle arguments
7-
default: :platform-tooling-support-tests:test build --no-configuration-cache # Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318
7+
default: :platform-tooling-support-tests:test build eclipse --no-configuration-cache # Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318
88
encryptionKey:
99
required: true
1010
description: Gradle cache encryption key

.github/actions/maven-central-user-token/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ runs:
1111
using: "composite"
1212
steps:
1313
- shell: bash
14-
run: |
15-
USER_TOKEN=$(printf "${{ inputs.username }}:${{ inputs.password }}" | base64)
14+
run: | # zizmor: ignore[github-env]
15+
USER_TOKEN=$(printf "${USERNAME}:${PASSWORD}" | base64)
1616
echo "::add-mask::$USER_TOKEN"
1717
echo "MAVEN_CENTRAL_USER_TOKEN=$USER_TOKEN" >> $GITHUB_ENV
18+
env:
19+
USERNAME: ${{ inputs.username }}
20+
PASSWORD: ${{ inputs.password }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ inputs:
1111
runs:
1212
using: "composite"
1313
steps:
14-
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
14+
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
1515
id: setup-gradle-jdk
1616
with:
1717
distribution: temurin
1818
java-version: 24
1919
check-latest: true
20-
- uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
20+
- uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4.4.3
2121
with:
2222
cache-encryption-key: ${{ inputs.encryptionKey }}
2323
- shell: bash
2424
env:
2525
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
26-
run: |
26+
run: | # zizmor: ignore[template-injection]
2727
./gradlew \
2828
-Porg.gradle.java.installations.auto-download=false \
2929
-Pjunit.develocity.predictiveTestSelection.enabled=true \

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
11+
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
1212
with:
1313
distribution: ${{ inputs.distribution }}
1414
java-version: 8
1515
check-latest: true
1616
- shell: bash
17-
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
18-
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
17+
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV # zizmor: ignore[github-env]
18+
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
1919
with:
2020
distribution: ${{ inputs.distribution }}
2121
java-version: 17
2222
check-latest: true
2323
- shell: bash
24-
run: echo "JDK17=$JAVA_HOME" >> $GITHUB_ENV
24+
run: echo "JDK17=$JAVA_HOME" >> $GITHUB_ENV # zizmor: ignore[github-env]

.github/renovate.json5

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
'org.codehaus.groovy:{/,}**',
1212
],
1313
},
14-
{
15-
matchCurrentValue: '/^4\\./',
16-
allowedVersions: '(,5.0)',
17-
matchPackageNames: [
18-
'org.apache.groovy:{/,}**',
19-
],
20-
},
2114
{
2215
matchCurrentValue: '/^1\\./',
2316
allowedVersions: '/^1\\..*-groovy-2\\.*/',
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module.exports = async ({ github, context }) => {
2+
const releaseVersion = process.env.RELEASE_VERSION;
3+
const query = `
4+
query ($owner: String!, $repo: String!, $title: String!) {
5+
repository(owner: $owner, name: $repo) {
6+
milestones(first: 100, query: $title) {
7+
nodes {
8+
title
9+
number
10+
openIssueCount
11+
}
12+
}
13+
}
14+
}
15+
`;
16+
const {repository} = await github.graphql(query, {
17+
owner: context.repo.owner,
18+
repo: context.repo.repo,
19+
title: releaseVersion
20+
});
21+
const [milestone] = repository.milestones.nodes.filter(it => it.title === releaseVersion);
22+
if (!milestone) {
23+
throw new Error(`Milestone "${releaseVersion}" not found`);
24+
}
25+
if (milestone.openIssueCount > 0) {
26+
throw new Error(`Milestone "${releaseVersion}" has ${milestone.openIssueCount} open issue(s)`);
27+
}
28+
const requestBody = {
29+
owner: context.repo.owner,
30+
repo: context.repo.repo,
31+
milestone_number: milestone.number,
32+
state: 'closed',
33+
due_on: new Date().toISOString()
34+
};
35+
console.log(requestBody);
36+
await github.rest.issues.updateMilestone(requestBody);
37+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = async ({ github, context }) => {
2+
const releaseVersion = process.env.RELEASE_VERSION;
3+
const requestBody = {
4+
owner: context.repo.owner,
5+
repo: context.repo.repo,
6+
tag_name: `r${releaseVersion}`,
7+
name: `JUnit ${releaseVersion}`,
8+
generate_release_notes: true,
9+
body: `JUnit ${releaseVersion} = Platform ${releaseVersion} + Jupiter ${releaseVersion} + Vintage ${releaseVersion}\n\nSee [Release Notes](https://docs.junit.org/${releaseVersion}/release-notes/).`,
10+
prerelease: releaseVersion.includes("-"),
11+
};
12+
console.log(requestBody);
13+
await github.rest.repos.createRelease(requestBody);
14+
};

.github/workflows/close-inactive-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ on:
33
schedule:
44
- cron: "30 1 * * *"
55
workflow_dispatch:
6-
permissions: read-all
6+
permissions: {}
77
jobs:
88
close-issues:
99
runs-on: ubuntu-latest
1010
permissions:
1111
issues: write
1212
pull-requests: write
1313
steps:
14-
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
14+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
1515
with:
1616
only-labels: "status: waiting-for-feedback"
1717
days-before-stale: 14

0 commit comments

Comments
 (0)