Skip to content

Commit

Permalink
ci: Add unit test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Nov 21, 2024
1 parent 97c4e64 commit ec7ec5c
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: nf-test CI
# This workflow runs the nf-test test suite
on:
pull_request:
release:
types: [published]

env:
NXF_ANSI_LOG: false

jobs:
test:
name: Run ${{ matrix.profile }} pipeline test
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "latest-stable"
profile: ["docker"] # TODO , "singularity", "conda"]
steps:
- name: Check out pipeline code
uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: /usr/local/bin/nextflow
key: ${{ runner.os }}
restore-keys: |
${{ runner.os }}-nextflow-
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "${{ matrix.NXF_VER }}"

- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/
- name: Run nf-test
run: nf-test test --profile=${{ matrix.profile }} tests/**/**/*nf.test --tap=test.tap

- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap

0 comments on commit ec7ec5c

Please sign in to comment.