Skip to content

Set concurrency for GitHub workflow #42

Set concurrency for GitHub workflow

Set concurrency for GitHub workflow #42

Workflow file for this run

name: Test
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
env:
JAVA_VERSION: 17
JAVA_DISTRO: zulu
jobs:
pipeline-test:
name: Pipeline tests
runs-on: ubuntu-latest
need: [module-test, workflow-test]

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

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 20, Col: 5): Unexpected value 'need'
strategy:
fail-fast: false
max-parallel: 1
matrix:
profile:
- gemflux
- starrsem
- starflux
- markdup
- rmdup
- ihec
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
java-package: jre
- name: Setup Nextflow
uses: nf-core/setup-nextflow@v2
- name: Install nf-test
uses: nf-core/setup-nf-test@v1
- name: Run tests
run: nf-test test --tag pipeline --profile +${CI_PROFILE}
env:
CI_PROFILE: ${{ matrix.profile }}
workflow-test:
name: Workflow tests
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-workflow
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
java-package: jre
- name: Setup Nextflow
uses: nf-core/setup-nextflow@v2
- name: Install nf-test
uses: nf-core/setup-nf-test@v1
- name: Run tests
run: nf-test test --tag workflow
module-test:
name: Module tests
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-module
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
java-package: jre
- name: Setup Nextflow
uses: nf-core/setup-nextflow@v2
- name: Install nf-test
uses: nf-core/setup-nf-test@v1
- name: Run tests
run: nf-test test --tag module