Changeset 18026 in josm


Ignore:
Timestamp:
2021-07-15T02:01:29+02:00 (3 years ago)
Author:
Don-vip
Message:

GitHub Actions: move the test report outside of the matrix, add another action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/ant-test.yml

    r18020 r18026  
    7474        with:
    7575          name: Ant reports for JOSM ${{ needs.createrelease.outputs.josm_revision }} on java ${{ matrix.java }} on ${{ matrix.os }}
    76           path: 'test/report/*.txt'
     76          path: |
     77            test/report/*.txt
     78            test/report/TEST*.xml
     79
     80  publish-test-results:
     81    name: "Publish Unit Tests Results"
     82    needs: test
     83    runs-on: ubuntu-latest
     84    # the test job might be skipped, we don't need to run this job then
     85    if: success() || failure()
     86
     87    steps:
     88      - name: Download Artifacts
     89        uses: actions/download-artifact@v2
     90        with:
     91          path: artifacts
    7792
    7893      - name: Publish Test Report with junit-report-annotations-action
     
    8095        if: ${{ always() }}
    8196        with:
    82           path: 'test/report/TEST*.xml'
     97          path: 'artifacts/**/*.xml'
    8398          access-token: ${{ secrets.GITHUB_TOKEN }}
    8499
     
    87102        uses: mikepenz/action-junit-report@v2
    88103        with:
    89           report_paths: 'test/report/TEST*.xml'
     104          report_paths: 'artifacts/**/*.xml'
    90105          token: ${{ secrets.GITHUB_TOKEN }}
     106
     107      - name: Publish Test Report with publish-unit-test-result-action
     108        uses: EnricoMi/publish-unit-test-result-action@v1
     109        with:
     110          files: 'artifacts/**/*.xml'
Note: See TracChangeset for help on using the changeset viewer.