Skip to content

Commit

Permalink
chore(build): add e2e to ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed Aug 21, 2023
1 parent a513866 commit a58c3e7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main_push_and_pull_request_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,23 @@ jobs:
java-version: ${{ matrix.java-version }}
distribution: temurin

- name: Read version from properties file
id: read-version
run: |
version=$(grep -oP 'version=\K[^[:space:]]+' gradle.properties)
echo "Version found: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Build with Gradle
run: ./gradlew build distTar -x integrationTest
run: make build/distributions/tiered-storage-for-apache-kafka-${{ env.VERSION }}.tgz

- name: Run integration tests
run: ./gradlew integrationTest
run: make integration_test

- name: Build Docker image
run: make docker_image

- name: Run E2e tests
run: make e2e_test

# TODO: publish docker image
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ clean:
./gradlew clean

build/distributions/tiered-storage-for-apache-kafka-$(VERSION).tgz:
./gradlew build distTar -x integrationTest
./gradlew build distTar -x integrationTest -x e2e:test

integration_test: build/distributions/tiered-storage-for-apache-kafka-$(VERSION).tgz
./gradlew integrationTest

e2e_test: build/distributions/tiered-storage-for-apache-kafka-$(VERSION).tgz
./gradlew e2e:test

.PHONY: docker_image
docker_image: build/distributions/tiered-storage-for-apache-kafka-$(VERSION).tgz
docker build . \
Expand Down
4 changes: 0 additions & 4 deletions e2e/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,5 @@ dependencies {
test {
testLogging {
exceptionFormat "full"

info {
showStackTraces = true
}
}
}

0 comments on commit a58c3e7

Please sign in to comment.