diff --git a/.github/workflows/commentsFromTests.md b/.github/workflows/commentMacaw.md similarity index 57% rename from .github/workflows/commentsFromTests.md rename to .github/workflows/commentMacaw.md index 4c5857ea..022ee3d0 100644 --- a/.github/workflows/commentsFromTests.md +++ b/.github/workflows/commentMacaw.md @@ -1,9 +1,9 @@ -This PR has been [automatically tested with GH Actions](https://github.com/SysBioChalmers/Human-GEM/actions/runs/{GH_ACTION_RUN}). Here is the output of the macaw test: +This PR has been [automatically tested with GH Actions](https://github.com/SysBioChalmers/Human-GEM/actions/runs/{GH_ACTION_RUN}). Here is the output of the [MACAW](https://github.com/Devlin-Moyer/macaw) test:
 {TEST_RESULTS}
 
-A more detailed output from this test run is also committed to `data/macawResults/macaw_results.csv`. +This and a more detailed output from MACAW are also committed to `data/macawResults/`. > _Note: In the case of multiple test runs, this post will be edited._ diff --git a/.github/workflows/macaw-tests.yml b/.github/workflows/macaw-tests.yml index 90af0ee7..dd7cd150 100644 --- a/.github/workflows/macaw-tests.yml +++ b/.github/workflows/macaw-tests.yml @@ -31,6 +31,9 @@ jobs: PARSED_RESULTS="${PARSED_RESULTS//$'\r'/'
'}" echo $PARSED_RESULTS echo "results=$PARSED_RESULTS" >> $GITHUB_OUTPUT + PARSED_RESULTS="${TEST_RESULTS//$'\n'/' \n'}" + PARSED_RESULTS="${PARSED_RESULTS//$'\r'/' \r'}" + echo $TEST_RESULTS > data/macawResults/macaw_summary.md - name: Mention PR# in README.md env: @@ -50,7 +53,7 @@ jobs: - name: Post comment uses: NejcZdovc/comment-pr@v2 with: - file: "commentsFromTests.md" + file: "commentMacaw.md" env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} TEST_RESULTS: ${{steps.macaw-run.outputs.results}}