Skip to content

Commit 919fe9c

Browse files
authored
Merge pull request #4 from common-workflow-lab/add-extra
Add `extra` parameter
2 parents 21657b5 + 27de2c4 commit 919fe9c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
| `timeout` | false | 30 | timeout in seconds |
4444
| `tags` | false | "" | tags to be tested (e.g., "docker,required") |
4545
| `n` | false | "" | specify tests by their numbers (e.g., "1-5,10,13") |
46+
| `extra` | false | "" | extra arguments for the given CWL runner |
4647
| `skip-python-install` | false | false | skip installing python interpreter |
4748

4849
The `skip-python-install` parameter is useful when CWL runner requires specific version of Python.

action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ inputs:
2727
n:
2828
description: 'specify tests by their numbers (e.g., "1-5,10,13")'
2929
required: false
30-
# TODO: EXTRA, -j
30+
extra:
31+
description: 'extra arguments for the given CWL runner'
32+
required: false
33+
# TODO: -j
3134
outputs:
3235
badgedir:
3336
description: 'The directory name that stores conformance badges'
@@ -87,7 +90,11 @@ runs:
8790
nopt="-n=${{ inputs.n }}"
8891
fi
8992
90-
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt || true
93+
if [ -n "${{ inputs.extra }}" ]; then
94+
extraopt="EXTRA=${{ inputs.extra }}"
95+
fi
96+
97+
./run_test.sh RUNNER=${{inputs.runner}} --badgedir=$basedir/badges --junit-xml=$basedir/junit.xml --timeout=${{inputs.timeout}} $tagopt $nopt $extraopt || true
9198
echo "::set-output name=badgedir::$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/badges"
9299
echo "::set-output name=result::$GITHUB_WORKSPACE/cwl-run-conformance-${{ inputs.cwlVersion }}/junit.xml"
93100
env:

0 commit comments

Comments
 (0)