Skip to content

Commit daceee1

Browse files
committed
Upgrade WFs from main to v4
The `v3` has to be updated by Dependabot automatically **Auto-cherry-pick to `3.2.x` & `3.1.x`**
1 parent 5c7ec23 commit daceee1

File tree

5 files changed

+31
-4
lines changed

5 files changed

+31
-4
lines changed

.github/workflows/announce-milestone-planning.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ on:
66

77
jobs:
88
announce-milestone-planning:
9-
uses: spring-io/spring-github-workflows/.github/workflows/spring-announce-milestone-planning.yml@main
9+
uses: spring-io/spring-github-workflows/.github/workflows/spring-announce-milestone-planning.yml@v4
1010
secrets:
1111
SPRING_RELEASE_CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}

.github/workflows/ci-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717

1818
jobs:
1919
build-snapshot:
20-
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
20+
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@v4
2121
with:
2222
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
2323
secrets:

.github/workflows/merge-dependabot-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
merge-dependabot-pr:
1313
permissions: write-all
1414

15-
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@main
15+
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@v4
1616
with:
1717
mergeArguments: --auto --squash
1818
autoMergeSnapshots: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
contents: write
1313
issues: write
1414

15-
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@main
15+
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@v4
1616
secrets:
1717
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
1818
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package org.springframework.kafka.test.context;
2+
3+
import org.junit.Test;
4+
import org.junit.runner.RunWith;
5+
6+
import org.springframework.beans.factory.annotation.Autowired;
7+
import org.springframework.kafka.test.EmbeddedKafkaZKBroker;
8+
import org.springframework.kafka.test.core.BrokerAddress;
9+
import org.springframework.test.annotation.DirtiesContext;
10+
import org.springframework.test.context.junit4.SpringRunner;
11+
12+
import static org.assertj.core.api.Assertions.assertThat;
13+
14+
@RunWith(SpringRunner.class)
15+
@DirtiesContext
16+
@EmbeddedKafka(topics = {"topic.1","topic.2"}, brokerProperties = {"listeners=PLAINTEXT://localhost:9092"}, kraft = false)
17+
public class Gh3585Tests {
18+
19+
@Autowired
20+
private EmbeddedKafkaZKBroker kafkaBroker;
21+
22+
@Test
23+
public void testEmbeddedKafkaZKBroker() {
24+
assertThat(this.kafkaBroker.getBrokerAddress(0)).isEqualTo(new BrokerAddress("127.0.0.1", 9092));
25+
}
26+
27+
}

0 commit comments

Comments
 (0)