11name : nf-ga4gh CI
22on :
33 push :
4+ branches :
5+ - ' master'
6+ pull_request :
7+ types : [opened, reopened, synchronize]
8+ workflow_dispatch :
49
510jobs :
611 build :
1217 fail-fast : false
1318 matrix :
1419 java_version : [
15- 17,
20+ 17,
1621 21,
1722 ]
1823
@@ -31,13 +36,10 @@ jobs:
3136 with :
3237 java-version : ${{matrix.java_version}}
3338 distribution : ' temurin'
34- cache : ' gradle'
35-
36- - name : Compile
37- run : ./gradlew assemble
39+ cache : ' gradle'
3840
39- - name : Tests
40- run : ./gradlew check
41+ - name : Unit tests
42+ run : make test
4143 env :
4244 GRADLE_OPTS : ' -Dorg.gradle.daemon=false'
4345
@@ -71,15 +73,15 @@ jobs:
7173 distribution : ' temurin'
7274 cache : ' gradle'
7375
74- - name : Install Plugin
75- run : |
76- make install
77-
7876 - name : Install Nextflow ${{ matrix.nextflow_version }}
7977 uses : nf-core/setup-nextflow@v2
8078 with :
8179 version : ${{ matrix.nextflow_version }}
8280
81+ - name : Install Plugin
82+ run : |
83+ make install
84+
8385 - name : Install TES Server
8486 run : |
8587 # https://github.com/ohsu-comp-bio/funnel/releases/tag/v0.11.8
@@ -92,19 +94,16 @@ jobs:
9294 - name : Get plugin version
9395 shell : bash
9496 run : |
95- PLUGIN_VERSION="$(./gradlew -q properties | awk -F': ' '/^version:/ {print $2; exit}' )"
97+ PLUGIN_VERSION="$(cat VERSION )"
9698 echo "PLUGIN_VERSION=${PLUGIN_VERSION}" >> "$GITHUB_ENV"
9799 echo "Using plugin version: ${PLUGIN_VERSION}"
98100
99101 - name : Install nf-canary
100102 run : |
101- cd ..
102- git clone https://github.com/seqeralabs/nf-canary
103- cd nf-canary
104- cat <<EOF > nextflow.config.tes
103+ cat <<EOF > nextflow.config
105104 // Nextflow config file for running on TES Backend
106105 plugins {
107- id " nf-ga4gh@${PLUGIN_VERSION}"
106+ id ' nf-ga4gh@${PLUGIN_VERSION}'
108107 }
109108 process {
110109 executor = 'tes'
@@ -116,23 +115,20 @@ jobs:
116115 basicUsername = null
117116 basicPassword = null
118117 }
118+ report.enabled = true
119+ timeline.enabled = true
119120 EOF
120121
121122 - name : Run nf-canary
122123 run : |
123- cd ../nf-canary
124124 export NXF_ANSI_LOG=false
125- nextflow run main.nf \
126- -config nextflow.config.tes \
127- -with-report report.html \
128- -with-timeline timeline.html
125+ nextflow run seqeralabs/nf-canary
129126
130127 - name : Stage Reports
131128 if : always()
132129 run : |
133130 mkdir -p $GITHUB_WORKSPACE/results
134- cd ../nf-canary
135-
131+
136132 # Nextflow Logs
137133 cp -f report.html timeline.html .nextflow.log $GITHUB_WORKSPACE/results/ || true
138134
0 commit comments