diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/matchers/erlang-mk-matchers.json | 26 | ||||
-rw-r--r-- | .github/workflows/ci.yaml | 15 |
2 files changed, 38 insertions, 3 deletions
diff --git a/.github/matchers/erlang-mk-matchers.json b/.github/matchers/erlang-mk-matchers.json new file mode 100644 index 0000000..d415603 --- /dev/null +++ b/.github/matchers/erlang-mk-matchers.json @@ -0,0 +1,26 @@ +{ + "problemMatcher": [ + { + "owner": "make-problem-matcher", + "pattern": [ + { + "regexp": "^make\\[\\d+\\]: \\*\\*\\* (\\[(\\S+):(\\d+): .+)$$", + "file": 2, + "line": 3, + "message": 1 + } + ] + }, + { + "owner": "gmake-problem-matcher", + "pattern": [ + { + "regexp": "^gmake\\[\\d+\\]: \\*\\*\\* (\\[(\\S+):(\\d+): .+)$$", + "file": 2, + "line": 3, + "message": 1 + } + ] + } + ] +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9b5740b..18b2dc6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -102,11 +102,15 @@ jobs: if: matrix.os == 'ubuntu-latest' && matrix.suite == 'core-elixir' run: sudo apt-get -y install libsodium-dev + - name: Install problem matchers + run: echo "::add-matcher::.github/matchers/erlang-mk-matchers.json" + - name: Run tests (Linux) if: matrix.os == 'ubuntu-latest' run: | erl -sname init_cookie -run erlang halt - make check c=${{ matrix.suite }} -j4 -k ${{ matrix.extra }} + set -o pipefail + make check c=${{ matrix.suite }} -j4 -k ${{ matrix.extra }} 2>&1 | sed "s/\*\*\* \[/*** [test\//" - name: Run tests (Windows) if: matrix.os == 'windows-latest' @@ -114,7 +118,8 @@ jobs: run: | export PATH=$INSTALL_DIR_FOR_OTP/bin:$PATH erl -sname init_cookie -run erlang halt - make check c=${{ matrix.suite }} -j4 -k ${{ matrix.extra }} + set -o pipefail + make check c=${{ matrix.suite }} -j4 -k ${{ matrix.extra }} 2>&1 | sed "s/\*\*\* \[/*** [test\//" - name: Upload artifacts if: failure() @@ -424,6 +429,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install problem matchers + run: echo "::add-matcher::.github/matchers/erlang-mk-matchers.json" + - name: Run tests (FreeBSD) uses: cross-platform-actions/[email protected] timeout-minutes: 60 @@ -438,7 +446,8 @@ jobs: git config --global safe.directory '*' erl -sname init_cookie -run erlang halt - gmake check c=${{ matrix.suite }} -j4 USE_NODETOOL=1 + set -o pipefail + gmake check c=${{ matrix.suite }} -j4 USE_NODETOOL=1 2>&1 | sed "s/\*\*\* \[/*** [test\//" - name: Upload artifacts if: failure() |