From 1e0ffa6b1c4a40aab694ce0b2d7a0c2aa920f78d Mon Sep 17 00:00:00 2001 From: alallema Date: Thu, 3 Feb 2022 13:07:58 +0100 Subject: [PATCH 1/4] Fix error in build during deploy --- src/test/java/com/meilisearch/integration/KeysTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/meilisearch/integration/KeysTest.java b/src/test/java/com/meilisearch/integration/KeysTest.java index a756c2cf..ad79268f 100644 --- a/src/test/java/com/meilisearch/integration/KeysTest.java +++ b/src/test/java/com/meilisearch/integration/KeysTest.java @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; -@Tag("integrationKey") +@Tag("integration") public class KeysTest extends AbstractIT { @BeforeEach From 99ab9cfa41977e9382adabd3363d5e484d6c0b79 Mon Sep 17 00:00:00 2001 From: alallema Date: Thu, 3 Feb 2022 13:24:46 +0100 Subject: [PATCH 2/4] Archive test report in artifact --- .github/workflows/tests.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8de8dc1a..5b73c854 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,16 +18,26 @@ jobs: name: integration-and-unit-tests steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up Java + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: 8 + distribution: 'zulu' + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Meilisearch (latest version) setup with Docker run: docker run -d -p 7700:7700 getmeili/meilisearch:latest ./meilisearch --no-analytics=true --master-key='masterKey' - name: Build and run unit and integration tests run: ./gradlew build integrationTest + - name: Archive test report + uses: actions/upload-artifact@v2 + if: failure() + with: + name: Test report + path: | + build/reports/tests/integrationTest + if-no-files-found: ignore linter: runs-on: ubuntu-latest From ed371052c3a6af20981e04bacfde3efbbc713341 Mon Sep 17 00:00:00 2001 From: alallema Date: Thu, 3 Feb 2022 14:52:16 +0100 Subject: [PATCH 3/4] Try with java 1.8 --- .github/workflows/tests.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5b73c854..51cc75e5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,12 +18,10 @@ jobs: name: integration-and-unit-tests steps: - uses: actions/checkout@v2 - - name: Set up Java - uses: actions/setup-java@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 with: - java-version: 8 - distribution: 'zulu' - cache: gradle + java-version: 1.8 - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Meilisearch (latest version) setup with Docker From 78964250bcef6ab2643b9cba7cc131b816a7300d Mon Sep 17 00:00:00 2001 From: alallema Date: Thu, 3 Feb 2022 14:55:13 +0100 Subject: [PATCH 4/4] Try with setup-java 2 --- .github/workflows/ossrh-publish.yml | 13 +++++++++++-- .github/workflows/tests.yml | 11 ++++++----- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ossrh-publish.yml b/.github/workflows/ossrh-publish.yml index ae8fc4b5..89411d69 100644 --- a/.github/workflows/ossrh-publish.yml +++ b/.github/workflows/ossrh-publish.yml @@ -11,15 +11,24 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: 8 + distribution: 'zulu' + cache: gradle - name: Check release validity run: bash .github/scripts/check-release.sh - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build + - name: Archive test report + uses: actions/upload-artifact@v2 + if: failure() + with: + name: Test report + path: build/reports/tests/test + if-no-files-found: ignore - name: Decode secring.gpg run: | echo "${{secrets.SIGNING_SECRET_KEY_RING_FILE}}" > ~/.gradle/secring.gpg.b64 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 51cc75e5..595de1ba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,10 +18,12 @@ jobs: name: integration-and-unit-tests steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Set up Java + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: 8 + distribution: 'zulu' + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Meilisearch (latest version) setup with Docker @@ -33,8 +35,7 @@ jobs: if: failure() with: name: Test report - path: | - build/reports/tests/integrationTest + path: build/reports/tests/integrationTest if-no-files-found: ignore linter: