Skip to content

Commit

Permalink
add stub check
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro committed May 29, 2024
1 parent 03567e6 commit c6f9bfb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/nextflow-stub-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check nextflow stub

on:
push:
branches:
- jashapiro/resourceLimits
pull_request:
branches:
- main

jobs:
nf-stub-check:
runs-on: ubuntu-latest
container: nextflow/nextflow:24.04.2
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check main workflow
run: nextflow run main.nf -stub -profile stub -ansi-log false -log stub-run.log

- name: Check simulate workflow
run: nextflow run main.nf -stub -profile stub -entry simulate -ansi-log false -log simulate-run.log

- name: Join log files
if: ${{ !cancelled() }}
run: cat stub-run.log simulate-run.log > nextflow-runs.log

- name: Upload nextflow log
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v3
with:
name: nextflow-log
path: nextflow-runs.log
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ manifest {
mainScript = 'main.nf'
defaultBranch = 'main'
version = 'v0.0.1'
nextflowVersion = '>=24.04.1'
nextflowVersion = '>=24.04.0'
}

nextflow.enable.moduleBinaries = true
Expand Down

0 comments on commit c6f9bfb

Please sign in to comment.