Skip to content

Implement CI/CD workflow #18

Implement CI/CD workflow

Implement CI/CD workflow #18

Workflow file for this run

name: SIMBA CI
on:
push:
branches:
- master
pull_request:
release:
types: [published]
env:
NXF_ANSI_LOG: false
NXF_APPTAINER_CACHEDIR: /tmp/apptainer-cache
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
jobs:
test:
name: Run pipeline with test data
# Only run on push if this is the nf-core dev branch (merged PRs)
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/circrna') }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "latest-everything"
PROFILE:
- "build"
- "extend"
- "sub"
steps:
- name: Check out pipeline code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "${{ matrix.NXF_VER }}"
- name: Install Apptainer
uses: eWaterCycle/setup-apptainer@v2
- name: Apptainer cache
id: apptainer-cache
uses: actions/cache@v4
with:
path: ${{ env.NXF_APPTAINER_CACHEDIR }}
key: ${{ runner.os }}-apptainer-${{ hashFiles('docker/**') }}
- name: Run pipeline
run: |
cd example/${{ matrix.PROFILE }} && ./run.sh