Skip to content

Commit

Permalink
feat(ci): use re-usable verify-bom.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Oct 11, 2024
1 parent 5bc8a21 commit 3e4c5ef
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ jobs:
uses: eclipse-edc/.github/.github/workflows/verify-openapi.yml@main
secrets: inherit

Verify-BOM:
runs-on: ubuntu-latest
Verify-EDC-BOM:
strategy:
fail-fast: false

Expand All @@ -106,28 +105,8 @@ jobs:
bom-directory: [ "dist/bom/dataplane-base-bom",
"dist/bom/controlplane-dcp-bom",
"dist/bom/sts-feature-bom" ]
steps:
- uses: actions/checkout@v4
- uses: eclipse-edc/.github/.github/actions/setup-build@main
- name: Build runtime
run: ./gradlew -p ${{ matrix.bom-directory }} build
- name: Smoke Test
timeout-minutes: 10
run: |
# Start the program in the background
java -Dedc.fs.config=${{ matrix.bom-directory }}/example.properties -cp "$(./gradlew -q -p ${{ matrix.bom-directory }} printClassPath)" org.eclipse.edc.boot.system.runtime.BaseRuntime > ${{ matrix.bom-directory }}/log.txt &
# Get the PID of the running command
PID=$!
# Monitor the output and kill the process when desired output is found
while :; do
# Capture the output of the command
cat ${{ matrix.bom-directory }}/log.txt 2>/dev/null | grep -q "Runtime .* ready" && break
sleep 1
done
# Kill the process once the output is detected
kill $PID
echo "Runtime ${{ matrix.bom-directory }} shutdown after ready signal detected."
rm ${{ matrix.bom-directory }}/log.txt
uses: eclipse-edc/.github/.github/workflows/verify-bom.yml@main
with:
module-dir: ${{ matrix.bom-directory }}
properties-file: example.properties

0 comments on commit 3e4c5ef

Please sign in to comment.