From 42bce5b3644f2d16ed6910601504d6dda96bb5b6 Mon Sep 17 00:00:00 2001 From: tefirman Date: Mon, 16 Dec 2024 10:53:24 -0800 Subject: [PATCH] Adding initial versions of GitHub Actions --- .github/workflows/cromwell-test-run.yml | 32 +++++++++++++++++++++++ .github/workflows/womtools-validate.yml | 34 +++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .github/workflows/cromwell-test-run.yml create mode 100644 .github/workflows/womtools-validate.yml diff --git a/.github/workflows/cromwell-test-run.yml b/.github/workflows/cromwell-test-run.yml new file mode 100644 index 0000000..86ea80c --- /dev/null +++ b/.github/workflows/cromwell-test-run.yml @@ -0,0 +1,32 @@ +name: Cromwell Test Run + +on: + workflow_dispatch: + +jobs: + testrun: + runs-on: ubuntu-latest + permissions: write-all + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set Up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - + name: Pull Cromwell Jarfile + 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 + + + + diff --git a/.github/workflows/womtools-validate.yml b/.github/workflows/womtools-validate.yml new file mode 100644 index 0000000..ad88369 --- /dev/null +++ b/.github/workflows/womtools-validate.yml @@ -0,0 +1,34 @@ +name: WOMtool Validation of WDL Script + +on: + workflow_dispatch: + +permissions: + contents: read + packages: write + +jobs: + womtoolval: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Set Up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '21' + - + name: Pull WOMtool Jarfile + 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 + + +