Skip to content

Commit

Permalink
ci(stream): initialize java
Browse files Browse the repository at this point in the history
Signed-off-by: SSpirits <[email protected]>
  • Loading branch information
ShadowySpirits committed Jan 3, 2024
1 parent a41612d commit d59f7ec
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/s3-stream-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,29 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: "maven"
- uses: actions/checkout@v3
with:
submodules: true
- name: Build s3stream dependency
run: cd s3stream && mvn clean install -U -DskipTests && cd ..
- 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
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: "maven"
- name: Change s3stream version
run: |
export S3STREAM_VERSION=$(cat s3stream/target/maven-archiver/pom.properties| grep version | awk -F '=' '{print $2}')
sed -i "s/<s3stream.version>.*<\/s3stream.version>/<s3stream.version>$S3STREAM_VERSION<\/s3stream.version>/g" s3stream-e2e/pom.xml
- name: Run tests
run: cd s3stream-e2e && mvn test -pl integration
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
Expand Down

0 comments on commit d59f7ec

Please sign in to comment.