Add support for samplesheet input #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- master | |
name: Pull Request | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: create artifacts dir to save test logs | |
run: mkdir artifacts | |
- name: Cache Miniconda installation | |
id: cache-miniconda | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-miniconda-installation | |
with: | |
path: /opt/miniconda3 | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-miniconda3 | |
- name: Cache conda environment | |
id: cache-conda-env | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-conda-env | |
with: | |
path: ~/.conda/envs | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('environments') }} | |
- name: Install Miniconda | |
if: steps.cache-miniconda.outputs.cache-hit != 'true' | |
run: bash .github/scripts/install_conda.sh | |
- name: Install Nextflow | |
run: bash .github/scripts/install_nextflow.sh | |
- name: Test against previous release | |
run: bash .github/scripts/test_against_previous_release.sh | |
- name: if failure, add latest NF log to artifacts | |
run: mv .nextflow.log artifacts/failure.nextflow.log && mv work artifacts/work_failed | |
if: failure() | |
- uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: test_artifacts | |
path: artifacts |