Skip to content

Commit

Permalink
GHA: add meson testing
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-schwartz committed Feb 5, 2024
1 parent 1c71410 commit be157fd
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: libpsl

on:
push:
branches: [main]
pull_request:
branches: ["**"]

jobs:
test:
Expand All @@ -25,3 +23,22 @@ jobs:
./autogen.sh
CFLAGS="-O0 -Wall -Wextra" ./configure --enable-runtime=${{matrix.runtime}}
make check
meson-test:
name: Meson Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
max-parallel: 3
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
steps:
- name: Check out
uses: actions/checkout@v4
- name: Install dependencies
run: pip install --pre meson
- name: Configure
run: meson setup builddir
- name: Build
run: ninja -C builddir
- name: Test
run: meson test -C builddir --print-errorlogs

0 comments on commit be157fd

Please sign in to comment.