Skip to content

Commit

Permalink
build: fix CI and build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Jul 22, 2022
1 parent bd78c7e commit 4328c6a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,47 @@ jobs:
name: local-core-test-results
path: "**/target/surefire-reports/**"
retention-days: 3
engine:
env:
TC_CLOUD_TOKEN: ${{ secrets.TC_CLOUD_TOKEN }}
TC_CLOUD_CONCURRENCY: 4
name: Test (Cloud) - engine
runs-on: ubuntu-latest
steps:
- name: Prepare Testcontainers Cloud agent
run: |
curl -L -o agent https://app.testcontainers.cloud/download/testcontainers-cloud-agent_linux_x86-64
chmod +x agent
./agent &
./agent wait
- uses: actions/checkout@v3
# remove exports causing issues on JDK 8
- run: rm .mvn/jvm.config
- name: Setup JDK 17 for exporter build
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build & Copy exporter
run: >
mvn -B -T1C -DskipTests -DskipChecks install
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: Test
timeout-minutes: 20
run: >
mvn -B -Pparallel-tests -DforkCount=2C -DskipChecks -pl engine test
- name: Archive Test Results
uses: actions/upload-artifact@v3
if: always()
with:
name: cloud-core-test-results
path: "**/target/surefire-reports/**"
retention-days: 3
exporter:
name: Test (Local) - exporter
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.zeebe</groupId>
<artifactId>zeebe-test-container-root</artifactId>
<version>3.4.1-SNAPSHOT</version>
<version>3.5.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.zeebe</groupId>
<artifactId>zeebe-test-container-root</artifactId>
<version>3.4.1-SNAPSHOT</version>
<version>3.5.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion exporter-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.zeebe</groupId>
<artifactId>zeebe-test-container-root</artifactId>
<version>3.4.1-SNAPSHOT</version>
<version>3.5.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion exporter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.zeebe</groupId>
<artifactId>zeebe-test-container-root</artifactId>
<version>3.4.1-SNAPSHOT</version>
<version>3.5.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit 4328c6a

Please sign in to comment.