Skip to content

Add unit testing framework and tests for existing code (and assorted fixes and breaking API changes) #25

Add unit testing framework and tests for existing code (and assorted fixes and breaking API changes)

Add unit testing framework and tests for existing code (and assorted fixes and breaking API changes) #25

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
linux:
name: Build and Test on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Dependencies
run: python3 -m pip install meson~=1.2.2 ninja~=1.11.1
- name: Cache Dependencies
uses: actions/cache@v3
with:
key: linux-${{ hashFiles('subprojects/*.wrap') }}
path: |
subprojects
build/subprojects
- name: Setup build with Meson
run: meson setup build
- name: Build with Meson
run: meson compile -C build
- name: Test with Meson
run: meson test -C build
macos:
name: Build and Test on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Dependencies
run: python3 -m pip install meson~=1.2.2 ninja~=1.11.1
- name: Cache Dependencies
uses: actions/cache@v3
with:
key: macos-${{ hashFiles('subprojects/*.wrap') }}
path: |
subprojects
build/subprojects
- name: Setup build with Meson
run: meson setup build
- name: Build with Meson
run: meson compile -C build
- name: Test with Meson
run: meson test -C build
windows-mingw:
name: Build and Test on Windows (MinGW)
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: Setup Dependencies
run: python -m pip install meson~=1.2.2 ninja~=1.11.1
- name: Setup build with Meson
run: meson setup build
- name: Build with Meson
run: meson compile -C build
- name: Test with Meson
run: meson test -C build
windows-vs:
name: Build and Test on Windows (Visual Studio)
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup Dependencies
run: python -m pip install meson~=1.2.2 ninja~=1.11.1
- name: Cache Dependencies
uses: actions/cache@v3
with:
key: windows-${{ hashFiles('subprojects/*.wrap') }}
path: |
subprojects
build/subprojects
- name: Setup build with Meson
run: meson setup -Dvsenv=true build
- name: Build with Meson
run: meson compile -C build
- name: Test with Meson
run: meson test -C build