Skip to content

Commit

Permalink
Build workflow: report the status of make check after the test log …
Browse files Browse the repository at this point in the history
…has been uploaded.
  • Loading branch information
octo committed Nov 24, 2023
1 parent 88d8495 commit faea305
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ jobs:
- name: Build collectd
run: make -j$(nproc) -sk
- name: Run make check
run: make -j$(nproc) -sk check
run: |
make $MAKEFLAGS check
echo "$?" >make-check.status
continue-on-error: true
- name: Dump test logs
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.container_tag }} test log
path: test-suite.log
- name: Report check status
run: exit $(< make-check.status)

experimental:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -96,10 +100,14 @@ jobs:
- name: Build collectd
run: make -j$(nproc) -sk
- name: Run make check
run: make -j$(nproc) -sk check
run: |
make $MAKEFLAGS check
echo "$?" >make-check.status
continue-on-error: true
- name: Dump test logs
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.container_tag }} test log
path: test-suite.log
- name: Report check status
run: exit $(< make-check.status)

0 comments on commit faea305

Please sign in to comment.