Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding initial version of conditional unit test WDL #29

Merged
merged 9 commits into from
Feb 5, 2025
Prev Previous commit
Next Next commit
Merge branch 'main' into conditional-test
  • Loading branch information
tefirman authored Dec 19, 2024
commit 7bc3097443e7f5ba5acd0e49305c16c56a2e708f
16 changes: 9 additions & 7 deletions .github/workflows/cromwell-test-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ jobs:

- name: Execute Test Run of WDL Workflows
run: |
java -jar cromwell-86.jar run helloHostname/helloHostname.wdl
java -jar cromwell-86.jar run helloModuleHostname/helloModuleHostname.wdl
java -jar cromwell-86.jar run helloDockerHostname/helloDockerHostname.wdl
java -jar cromwell-86.jar run conditionalTest/conditionalTest.wdl -i conditionalTest/inputs.json -o conditionalTest/options.json



cmd="java -jar cromwell-86.jar run ${{ matrix.wdl }}/${{ matrix.wdl }}.wdl"
if [[ -f "${{ matrix.wdl }}/inputs.json" ]]; then
cmd="$cmd -i ${{ matrix.wdl }}/inputs.json"
fi
if [[ -f "${{ matrix.wdl }}/options.json" ]]; then
cmd="$cmd -o ${{ matrix.wdl }}/options.json"
fi
echo "Running command: $cmd"
eval "$cmd"

13 changes: 6 additions & 7 deletions .github/workflows/womtools-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ jobs:
-
name: Validate WDL Scripts
run: |
java -jar womtool-86.jar validate helloHostname/helloHostname.wdl
java -jar womtool-86.jar validate helloModuleHostname/helloModuleHostname.wdl
java -jar womtool-86.jar validate helloDockerHostname/helloDockerHostname.wdl
java -jar womtool-86.jar validate conditionalTest/conditionalTest.wdl -i conditionalTest/inputs.json



cmd="java -jar womtool-86.jar validate ${{ matrix.wdl }}/${{ matrix.wdl }}.wdl"
if [[ -f "${{ matrix.wdl }}/inputs.json" ]]; then
cmd="$cmd -i ${{ matrix.wdl }}/inputs.json"
fi
echo "Running command: $cmd"
eval "$cmd"
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.