-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/monitor_group_status
- Loading branch information
Showing
249 changed files
with
9,205 additions
and
6,408 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: E2E-TEST for AutoMQ S3Stream | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
paths: | ||
- 's3stream/**' | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: "maven" | ||
- name: Build s3stream | ||
working-directory: ./s3stream | ||
run: mvn clean install -U -DskipTests | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: AutoMQ/s3stream-e2e | ||
ref: main | ||
path: s3stream-e2e | ||
token: ${{ secrets.PAT_E2E }} | ||
- name: Change s3stream version | ||
run: | | ||
export S3STREAM_VERSION=$(cat s3stream/target/maven-archiver/pom.properties | grep version | awk -F '=' '{print $2}') | ||
echo "change s3stream version of e2e test to $S3STREAM_VERSION" | ||
sed -i "s/<s3stream.version>.*<\/s3stream.version>/<s3stream.version>$S3STREAM_VERSION<\/s3stream.version>/g" s3stream-e2e/pom.xml | ||
export LINE_START=$(awk '/<repositories>/{print NR}' s3stream-e2e/pom.xml) | ||
export LINE_END=$(awk '/<\/repositories>/{print NR}' s3stream-e2e/pom.xml) | ||
sed -i "${LINE_START},${LINE_END}d" s3stream-e2e/pom.xml | ||
cat s3stream-e2e/pom.xml | ||
- name: Run tests | ||
working-directory: ./s3stream-e2e | ||
run: mvn test -pl integration | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/surefire-reports/TEST-*.xml' | ||
annotate_only: true | ||
include_passed: true | ||
detailed_summary: true |
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
Oops, something went wrong.