GitHub Action to run make check #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run tests | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| branches: [master, main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| autoconf \ | |
| automake \ | |
| libtool \ | |
| gcc \ | |
| make \ | |
| shellcheck \ | |
| cppcheck | |
| - name: Bootstrap | |
| run: ./bootstrap.sh | |
| - name: Configure | |
| run: ./configure | |
| - name: Build | |
| run: make -j$(nproc) | |
| - name: Run tests | |
| run: make check | |
| - name: Upload test logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-logs | |
| path: tests/testsuite.log |