Skip to content

Commit

Permalink
finding local modules too
Browse files Browse the repository at this point in the history
  • Loading branch information
anwarMZ committed Nov 27, 2024
1 parent 7772044 commit c1655e6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: List Modules with Tests
id: get-modules
run: |
modules=$(find modules/{local,nf-core} -maxdepth 1 -mindepth 1 -type d | while read module; do
modules=$(find modules -maxdepth 3 -mindepth 3 -type d | while read module; do
if [ -d "$module/tests" ]; then
echo "$module"
fi
Expand Down Expand Up @@ -88,6 +88,10 @@ jobs:
- name: Display Test Summary
if: always()
run: |
echo "Test Summary for ${{ matrix.module }} (${{ matrix.profile }}):"
cat ${{ matrix.module }}/test.tap | grep -E '^(not )?ok'
if [ -f "${{ matrix.module }}/test.tap" ]; then
echo "Test Summary for ${{ matrix.module }} (${{ matrix.profile }}):"
cat ${{ matrix.module }}/test.tap | grep -E '^(not )?ok'
else
echo "No test.tap file found for ${{ matrix.module }}"
fi
shell: bash

0 comments on commit c1655e6

Please sign in to comment.