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

Implementing matrix strategy to speed up gha-only tests #28

Merged
merged 18 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .github/workflows/cromwell-test-run.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: Cromwell Test Run

on:
pull_request:
workflow_dispatch:

jobs:
testrun:
if: ${{ github.event.pull_request.head.repo.fork == false }}
runs-on: ubuntu-latest
permissions: write-all
strategy:
matrix:
wdl:
- helloHostname/helloHostname.wdl
seankross marked this conversation as resolved.
Show resolved Hide resolved
- helloModuleHostname/helloModuleHostname.wdl
- helloDockerHostname/helloDockerHostname.wdl
steps:
-
name: Checkout
Expand All @@ -22,11 +30,5 @@ jobs:
run: wget -q https://github.com/broadinstitute/cromwell/releases/download/86/cromwell-86.jar
-
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



run: java -jar cromwell-86.jar run ${{ matrix.wdl }}
sckott marked this conversation as resolved.
Show resolved Hide resolved

13 changes: 9 additions & 4 deletions .github/workflows/womtools-validate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: WOMtool Validation of WDL Script

on:
pull_request:
workflow_dispatch:

permissions:
Expand All @@ -9,7 +10,14 @@ permissions:

jobs:
womtoolval:
if: ${{ github.event.pull_request.head.repo.fork == false }}
seankross marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
strategy:
matrix:
wdl:
- helloHostname/helloHostname.wdl
- helloModuleHostname/helloModuleHostname.wdl
- helloDockerHostname/helloDockerHostname.wdl
steps:
-
name: Checkout
Expand All @@ -25,10 +33,7 @@ jobs:
run: wget -q https://github.com/broadinstitute/cromwell/releases/download/86/womtool-86.jar
-
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
run: java -jar womtool-86.jar validate ${{ matrix.wdl }}



4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# wdl-unit-tests

![Runs on Cromwell](https://github.com/FredHutch/wdl-unit-tests/actions/workflows/cromwell-test-run.yml/badge.svg)
![WOMtool Validation](https://github.com/FredHutch/wdl-unit-tests/actions/workflows/womtools-validate.yml/badge.svg)

A collection of minimal WDL (Workflow Description Language) workflows designed for testing WDL execution environments and backend configurations. Each workflow tests a specific aspect of WDL functionality while maintaining simplicity for easy debugging and verification.

## Workflows
Expand Down
Loading