mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-03 04:52:09 -05:00
ci: Cause changes to fail if the modules > 256
This commit is contained in:
parent
c6f676e86f
commit
64f4151632
1 changed files with 5 additions and 1 deletions
6
.github/workflows/pytest-workflow.yml
vendored
6
.github/workflows/pytest-workflow.yml
vendored
|
@ -23,13 +23,17 @@ jobs:
|
|||
cmd: |
|
||||
output=$(echo ${{ steps.filter.outputs.changes }} | yq e 'length' -)
|
||||
echo "::set-output name=magic_number::$output"
|
||||
- name: Fail if number of modules to be tested is greater than 256
|
||||
uses: cutenode/action-always-fail@v1.0.1
|
||||
if: steps.yq_modules.outputs.magic_number <= 256
|
||||
|
||||
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-20.04
|
||||
name: ${{ matrix.tags }} ${{ matrix.profile }} ${{ matrix.nxf_version }}
|
||||
needs: changes
|
||||
if: needs.changes.outputs.modules != '[]' && needs.changes.outputs.num_modules <= 256
|
||||
if: needs.changes.outputs.modules != '[]'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
Loading…
Reference in a new issue