Merge pull request #31 from larsewi/argument #75
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 shellcheck cppcheck | |
| - name: Bootstrap project | |
| run: ./bootstrap.sh | |
| - name: Create build directory | |
| run: mkdir build | |
| - name: Configure project | |
| run: cd build && ../configure --enable-debug | |
| - name: Build project | |
| run: make -C build -j$(nproc) | |
| - name: Run tests | |
| run: make -C build check | |
| - name: Upload test logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-logs | |
| path: build/tests/**/testsuite.log |