Skip to content

Commit

Permalink
feature(Build): Make "run-tests" able to run Custom Sets of Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wba2hi committed Mar 8, 2024
1 parent f5ca5f1 commit 31ff2cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ description: Runs Unit and Integration Test. Tests will be executed on a Databro
inputs:
upload-test-reports:
description: "Uploads the resulting test reports if enabled"
required: false
default: 'false'
upload-code-coverage-reports:
description: "Executes Code Coverage Generation and uploads the resulting reports if enabled"
required: false
default: 'false'
databroker-version:
description: "Databroker Version"
required: false
default: 'master'
kotest-tag:
description: >
The Kotest Tag to use when executing the tests. Check Tag.kt for valid options. Different Tags might require the
Databroker to be started in a different mode. Currently only unsecured mode (no tls, no authentication) is
supported.
default: '!CustomDatabroker'

runs:
using: "composite"
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: "Run Docker Container of Databroker in detached mode"
run: docker run --pull=always --rm --publish 55556:55556/tcp --detach --name databroker ghcr.io/eclipse/kuksa.val/databroker:${{ inputs.databroker-version }} --port 55556 --insecure
shell: bash

- name: Run 'test' with Gradle Wrapper
run: ./gradlew test -Dkotest.tags="!CustomDatabroker"
run: ./gradlew test -Dkotest.tags="${{ inputs.kotest-tag}}"
shell: bash

- name: Upload Test Reports
Expand Down

0 comments on commit 31ff2cf

Please sign in to comment.