Skip to content

add CI

add CI #1

Workflow file for this run

name: nf-core CI
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
on:
push:
pull_request:
release:
types: [published]
env:
NXF_ANSI_LOG: false
concurrency:
group: "{% raw %}${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}{% endraw %}"
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: "{% raw %}${{{% endraw %} github.event_name != 'push' || (github.event_name == 'push' && github.repository == '{{ name }}') {% raw %}}}{% endraw %}"

Check failure on line 20 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / nf-core CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 20, Col: 9): Unexpected symbol: '{%'. Located at position 1 within expression: {% endraw %} github.event_name != 'push' || (github.event_name == 'push' && github.repository == '{{ name }}') {% raw %
runs-on: ubuntu-latest
strategy:
matrix:
profile:
[
test,
test_assembly,
]
steps:
- name: Check out pipeline code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
version: "{% raw %}${{ matrix.NXF_VER }}{% endraw %}"
- name: Disk space cleanup
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
- name: Run pipeline with test data
run: |
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profile }},docker --outdir ./results