From f4282de068f2bc4e8496273af83052500d1171f8 Mon Sep 17 00:00:00 2001 From: Michael Camilleri Date: Wed, 25 Aug 2021 10:33:02 +0900 Subject: [PATCH] Add GitHub Workflow to test --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..71819468 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test + +on: [push, pull_request] + +jobs: + + test-posix: + name: Build and test on POSIX systems + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, macos-latest ] + steps: + - name: Checkout the repository + uses: actions/checkout@master + - name: Compile the project + run: make clean && make + - name: Test the project + run: make test + + test-windows: + name: Build and test on Windows + runs-on: windows-latest + steps: + - name: Checkout the repository + uses: actions/checkout@master + - name: Setup MSVC + uses: ilammy/msvc-dev-cmd@v1 + - name: Build the project + shell: cmd + run: build_win + - name: Test the project + shell: cmd + run: build_win test