Skip to content

GitHub Action to run make check #2

GitHub Action to run make check

GitHub Action to run make check #2

Workflow file for this run

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