-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test the connector runtime in "real-life" (#478)
* fix(deps): update dependency io.camunda:zeebe-bom to v8.6.3 * always check image on build * add another check step * added clean exit after successful start * timeout if something fails --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Lukas <[email protected]>
- Loading branch information
1 parent
0e6708b
commit fb5364e
Showing
5 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,14 @@ jobs: | |
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build | ||
run: mvn verify -PcheckFormat -Pbuild-image -B | ||
- name: check docker compose | ||
run: docker compose -f docker/docker-compose.yml up | ||
- uses: adambirds/[email protected] | ||
name: start docker compose | ||
with: | ||
compose-file: "./docker/docker-compose.yml" | ||
test-command: "java -jar runtime/target/script-connector-runtime.jar test" | ||
- name: try to run connector runtime | ||
run: java -jar runtime/target/script-connector-runtime.jar test | ||
timeout-minutes: 1 | ||
- name: Publish Unit Test Results | ||
id: publish | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
|
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
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
4 changes: 4 additions & 0 deletions
4
runtime/src/main/java/io/camunda/community/connector/script/App.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package io.camunda.community.connector.script; | ||
|
||
import java.util.Arrays; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class App { | ||
public static void main(String[] args) { | ||
SpringApplication.run(App.class, args); | ||
if (Arrays.asList(args).contains("test")) { | ||
System.exit(0); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,7 @@ camunda: | |
enabled: false | ||
webhook: | ||
enabled: false | ||
|
||
zeebe: | ||
client: | ||
security: | ||
plaintext: true |