Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

Commit df00b04

Browse files
committed
Add end-to-end test
Signed-off-by: Ben Sherman <[email protected]>
1 parent 82250f4 commit df00b04

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
java_version: [17, 21]
21+
nextflow_version: ['24.10']
2122

2223
steps:
2324
- name: Environment
@@ -36,11 +37,18 @@ jobs:
3637
architecture: x64
3738
distribution: 'temurin'
3839

39-
- name: Compile
40-
run: ./gradlew assemble
41-
42-
- name: Tests
43-
run: ./gradlew check
40+
- name: Unit tests
41+
run: make test
4442
env:
4543
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
4644

45+
- name: Setup Nextflow ${{ matrix.nextflow_version }}
46+
uses: nf-core/setup-nextflow@b9f764e8ba5c76b712ace14ecbfcef0e40ae2dd8 # v1
47+
with:
48+
version: "${{ matrix.nextflow_version }}"
49+
50+
- name: Install
51+
run: make install
52+
53+
- name: Test
54+
run: nextflow run validation/ -plugins [email protected]

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = '0.6.0'
77

88
nextflowPlugin {
99
// minimum nextflow version
10-
nextflowVersion = '24.11.0-edge'
10+
nextflowVersion = '24.10.0'
1111

1212
// plugin metadata
1313
provider = 'nextflow'

validation/main.nf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
include { goodbye ; randomString ; reverse } from 'plugin/nf-hello'
3+
4+
workflow {
5+
Channel
6+
.reverse( randomString(20) )
7+
.goodbye()
8+
.view()
9+
}

validation/nextflow.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
plugins {
2+
id 'nf-hello'
3+
}

0 commit comments

Comments
 (0)