|
32 | 32 | steps:
|
33 | 33 | - name: Install Nextflow
|
34 | 34 | uses: nf-core/setup-nextflow@v1
|
35 |
| - with: |
36 |
| - version: "${{ matrix.NXF_VER }}" |
37 | 35 |
|
38 | 36 | - name: Cache nf-test installation
|
39 | 37 | id: cache-software
|
@@ -99,29 +97,31 @@ jobs:
|
99 | 97 | run: |
|
100 | 98 | echo ${{ steps.list.outputs.tags }}
|
101 | 99 |
|
102 |
| - define_nxf_versions: |
103 |
| - name: Choose nextflow versions to test against depending on target branch |
104 |
| - runs-on: ubuntu-latest |
105 |
| - outputs: |
106 |
| - matrix: ${{ steps.nxf_versions.outputs.matrix }} |
107 |
| - steps: |
108 |
| - - id: nxf_versions |
109 |
| - run: | |
110 |
| - if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.base_ref }}" == "dev" && "${{ matrix.NXF_VER }}" != "latest-everything" ]]; then |
111 |
| - echo matrix='["latest-everything"]' | tee -a $GITHUB_OUTPUT |
112 |
| - else |
113 |
| - echo matrix='["latest-everything", "23.04.0"]' | tee -a $GITHUB_OUTPUT |
114 |
| - fi |
| 100 | + # define_nxf_versions: |
| 101 | + # name: Choose nextflow versions to test against depending on target branch |
| 102 | + # runs-on: ubuntu-latest |
| 103 | + # outputs: |
| 104 | + # matrix: ${{ steps.nxf_versions.outputs.matrix }} |
| 105 | + # steps: |
| 106 | + # - id: nxf_versions |
| 107 | + # run: | |
| 108 | + # if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.base_ref }}" == "dev" && "${{ matrix.NXF_VER }}" != "latest-everything" ]]; then |
| 109 | + # echo matrix='["latest-everything"]' | tee -a $GITHUB_OUTPUT |
| 110 | + # else |
| 111 | + # echo matrix='["latest-everything", "23.04.0"]' | tee -a $GITHUB_OUTPUT |
| 112 | + # fi |
115 | 113 |
|
116 | 114 | test:
|
117 | 115 | name: ${{ matrix.tags }} ${{ matrix.profile }} NF-${{ matrix.NXF_VER }}
|
118 |
| - needs: [changes, define_nxf_versions] |
| 116 | + needs: [changes] |
119 | 117 | if: needs.changes.outputs.changes
|
120 | 118 | runs-on: ubuntu-latest
|
121 | 119 | strategy:
|
122 | 120 | fail-fast: false
|
123 | 121 | matrix:
|
124 |
| - NXF_VER: ${{ fromJson(needs.define_nxf_versions.outputs.matrix) }} |
| 122 | + NXF_VER: |
| 123 | + - "latest-everything" |
| 124 | + - "23.04" |
125 | 125 | tags: ["${{ fromJson(needs.changes.outputs.tags) }}"]
|
126 | 126 | profile:
|
127 | 127 | - "docker"
|
@@ -180,3 +180,21 @@ jobs:
|
180 | 180 | if: always() # always run even if the previous step fails
|
181 | 181 | with:
|
182 | 182 | report_paths: test.xml
|
| 183 | + |
| 184 | + confirm-pass: |
| 185 | + runs-on: ubuntu-latest |
| 186 | + needs: [test] |
| 187 | + if: always() |
| 188 | + steps: |
| 189 | + - name: All tests ok |
| 190 | + if: ${{ success() || !contains(needs.*.result, 'failure') }} |
| 191 | + run: exit 0 |
| 192 | + - name: One or more tests failed |
| 193 | + if: ${{ contains(needs.*.result, 'failure') }} |
| 194 | + run: exit 1 |
| 195 | + |
| 196 | + - name: debug-print |
| 197 | + if: always() |
| 198 | + run: | |
| 199 | + echo "toJSON(needs) = ${{ toJSON(needs) }}" |
| 200 | + echo "toJSON(needs.*.result) = ${{ toJSON(needs.*.result) }}" |
0 commit comments