-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (75 loc) · 2.26 KB
/
cwl_compliance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Xenonflow CWL Compliance
on:
push:
branches:
- master
- cwl_compliance
pull_request:
branches:
- master
release:
types:
- created
jobs:
compliance:
name: Compliance
runs-on: ubuntu-latest
steps:
- name: Set up java
uses: actions/setup-java@v1
with:
java-version: 11.0.2
java-package: jdk
architecture: x64
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: "3.8"
architecture: "x64"
- name: Install cwltool
run: pip install cwltool
- name: Install test dependencies
run: pip install setuptools wheel cwltest pyyaml requests docker node
- name: Checkout project
uses: actions/checkout@v2
- name: Checkout common-workflow-language
uses: actions/checkout@v2
with:
repository: common-workflow-language/common-workflow-language.git
ref: main
path: common-workflow-language
- name: Check cwltool
run: cwltool --version
- name: Check repo layout
run: ls -l
- name: Build with Gradle
run: ./gradlew build -x test
- name: Run cwl compliance tests
run: |
./gradlew bootRun > xenonflow.log &
cd common-workflow-language
sleep 40
./run_test.sh --junit-xml=../../result.xml --junit-verbose RUNNER=../xenon-flow-runner.sh --badgedir=../../badges || true
env:
XENONFLOW_HOME: ${{github.workspace}}
XENONFLOW_FILES: ${{github.workspace}}/common-workflow-language/v1.0
XENONFLOW_API_KEY: in1uP28Y1Et9YGp95VLYzhm5Jgd5M1r0CKI7326RHwbVcHGa
- name: Upload Unit Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: Compliance XML Results
path: result.xml
- name: Upload Badges
if: always()
uses: actions/upload-artifact@v2
with:
name: Compliance Badges
path: badges/*.json
- name: Publish Compliance Results
uses: EnricoMi/[email protected]
if: always()
with:
files: result.xml
check_name: CWL Compliance Results
fail_on: nothing