Skip to content

Commit

Permalink
Merge pull request #1 from panaxging/build
Browse files Browse the repository at this point in the history
Add build workflow
  • Loading branch information
panaxging authored Jul 5, 2024
2 parents 9fd1844 + ffe0160 commit 1a9e28d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: nf-kafka CI
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
name: Build nf-kafka
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
java_version: [11, 17]

steps:
- name: Environment
run: env | sort

- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: true

- name: Setup Java ${{ matrix.java_version }}
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java_version}}
architecture: x64
distribution: 'temurin'

- name: Compile
run: ./gradlew assemble

- name: Tests
run: ./gradlew check
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false'
6 changes: 3 additions & 3 deletions plugins/nf-kafka/src/test/nextflow/events/DslTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ class DslTest extends Dsl2Spec implements KafkaContainerTrait{
process listener{
input: val(msg)
output: stdout
script:
"echo $msg"
script:
"echo ${msg[1]}"
}
chn = channel.watchTopic("test").until{ it[1]=='end' }
workflow{
Expand All @@ -163,7 +163,7 @@ class DslTest extends Dsl2Spec implements KafkaContainerTrait{
def result = new MockScriptRunner(config).setScript(SCRIPT).execute()

then:
[result.val[1],result.val[1]].sort() == ['echo Hola','echo Hi'].sort()
[result.val,result.val].sort() == ['echo Hola','echo Hi'].sort()
}

def 'cand write into and read from a topic' () {
Expand Down

0 comments on commit 1a9e28d

Please sign in to comment.