Skip to content

Commit c3362b5

Browse files
mr-cGlassOfWhiskey
authored andcommitted
Fewer containers (#129)
also run the tests against cwltool
1 parent 0d538a0 commit c3362b5

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: CI
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
88
push:
9-
branches: [ main ]
9+
branches: [ main, 1.2.1_proposed ]
1010
pull_request:
1111
branches: [ main, 1.2.1_proposed ]
1212

tests/cat3-tool-docker.cwl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env cwl-runner
2+
class: CommandLineTool
3+
cwlVersion: v1.2
4+
doc: "Print the contents of a file to stdout using 'cat' running in a docker container."
5+
requirements:
6+
DockerRequirement:
7+
dockerPull: docker.io/debian:stable-slim
8+
inputs:
9+
file1:
10+
type: File
11+
label: Input File
12+
doc: "The file that will be copied using 'cat'"
13+
inputBinding: {position: 1}
14+
outputs:
15+
output_file:
16+
type: File
17+
outputBinding: {glob: output.txt}
18+
baseCommand: cat
19+
stdout: output.txt

tests/wc-tool-shortcut.cwl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env cwl-runner
2+
3+
class: CommandLineTool
4+
cwlVersion: v1.2
5+
6+
requirements:
7+
- class: DockerRequirement
8+
dockerPull: docker.io/debian:stable-slim
9+
10+
inputs:
11+
file1: stdin
12+
13+
outputs:
14+
output:
15+
type: File
16+
outputBinding: { glob: output }
17+
18+
baseCommand: [wc]
19+
20+
stdout: output

0 commit comments

Comments
 (0)