Skip to content

Automatically build and run tests on push. #7

Automatically build and run tests on push.

Automatically build and run tests on push. #7

Workflow file for this run

name: Build and run tests
on: [ push, pull_request, workflow_dispatch ]
jobs:
linux:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Prepare
run: sudo apt-get install -y autoconf automake gettext libtool
- name: Check out
uses: actions/checkout@v4
- name: Configure
run: ./utils/autogen.sh && ./configure --enable-debug
- name: Build
run: make
- name: Run tests
run: make check
- name: Run distribution tests
run: make distcheck
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: test-logs
path: tests/**/*.log
macos:
name: macOS
runs-on: macos-latest
steps:
- name: Prepare
run: brew install autoconf automake autopoint gettext libtool
- name: Check out
uses: actions/checkout@v4
- name: Configure
run: ./utils/autogen.sh && ./configure --enable-debug
- name: Build
run: make
- name: Run tests
run: make check
- name: Run distribution tests
run: make distcheck
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: Test logs
path: tests/**/*.log