feat: start 0.17.1 and add trimShards (#219) #658
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
name: main | |
on: | |
push: | |
branches: [main, master, dirty] | |
pull_request: | |
branches: [main, master, dirty] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: "11" | |
distribution: "adopt" | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
- name: check Java & Kotlin code format | |
run: | | |
./gradlew spotlessJavaCheck | |
./gradlew spotlessKotlinCheck | |
./gradlew spotlessKotlinGradleCheck | |
- name: build and run unit tests | |
run: ./gradlew build | |
- name: upload unit-tests-reports | |
uses: actions/upload-artifact@v2 | |
if: ${{ success() }} || ${{ failure() }} | |
with: | |
name: unit-tests-reports | |
path: | | |
client/build/reports | |
retention-days: 7 | |
- name: publish to mavenLocal | |
run: ./gradlew publishToMavenLocal -PdisableSigning | |
- name: fetch integration tests source code | |
uses: actions/checkout@v3 | |
with: | |
submodules: "recursive" | |
repository: "hstreamdb/integration-tests" | |
path: integration-tests | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: run integration tests | |
run: | | |
cd integration-tests | |
./gradlew test -PenableMavenLocal --info --fail-fast -Dtag='basicTest' | |
- name: upload integration-tests-reports | |
uses: actions/upload-artifact@v2 | |
if: ${{ success() }} || ${{ failure() }} | |
with: | |
name: integration-tests-reports | |
path: | | |
integration-tests/.logs | |
integration-tests/app/build/reports | |
retention-days: 7 |