name: samtools_idxstats
on:
  push:
    paths:
      - software/samtools/idxstats/**
      - .github/workflows/samtools_idxstats.yml
      - tests
  pull_request:
    paths:
      - software/samtools/idxstats/**
      - .github/workflows/samtools_idxstats.yml
      - tests

jobs:
  ci_test:
    runs-on: ubuntu-latest
    env:
      NXF_ANSI_LOG: false
    steps:

    - uses: actions/checkout@v2

    - name: Install Nextflow
      run: |
        export NXF_VER="20.07.1"
        wget -qO- get.nextflow.io | bash
        sudo mv nextflow /usr/local/bin/

    # Test the module
    - run: nextflow run ./software/samtools/idxstats/test/ -profile docker