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`**
This commit is contained in:
Artem Bilan
2024-10-23 15:17:58 -04:00
parent 5c7ec23bc5
commit daceee131b
5 changed files with 31 additions and 4 deletions

View File

@@ -6,6 +6,6 @@ on:
jobs:
announce-milestone-planning:
uses: spring-io/spring-github-workflows/.github/workflows/spring-announce-milestone-planning.yml@main
uses: spring-io/spring-github-workflows/.github/workflows/spring-announce-milestone-planning.yml@v4
secrets:
SPRING_RELEASE_CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }}

View File

@@ -17,7 +17,7 @@ concurrency:
jobs:
build-snapshot:
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@v4
with:
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
secrets:

View File

@@ -12,7 +12,7 @@ jobs:
merge-dependabot-pr:
permissions: write-all
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@main
uses: spring-io/spring-github-workflows/.github/workflows/spring-merge-dependabot-pr.yml@v4
with:
mergeArguments: --auto --squash
autoMergeSnapshots: true

View File

@@ -12,7 +12,7 @@ jobs:
contents: write
issues: write
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@main
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@v4
secrets:
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

View File

@@ -0,0 +1,27 @@
package org.springframework.kafka.test.context;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.test.EmbeddedKafkaZKBroker;
import org.springframework.kafka.test.core.BrokerAddress;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class)
@DirtiesContext
@EmbeddedKafka(topics = {"topic.1","topic.2"}, brokerProperties = {"listeners=PLAINTEXT://localhost:9092"}, kraft = false)
public class Gh3585Tests {
@Autowired
private EmbeddedKafkaZKBroker kafkaBroker;
@Test
public void testEmbeddedKafkaZKBroker() {
assertThat(this.kafkaBroker.getBrokerAddress(0)).isEqualTo(new BrokerAddress("127.0.0.1", 9092));
}
}