From e3611ad0e42d4cd6e808536809110099afbff67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sat, 7 Dec 2019 11:57:33 +0100 Subject: [PATCH] Update the action to test on more platforms --- .github/workflows/test.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dcefa84fa..1aa6f8e5d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,21 +1,25 @@ --- on: [pull_request] -name: Cargo test +name: Test binaries with cargo test jobs: check: - name: MeiliSearch - runs-on: ubuntu-latest + name: Test on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --locked + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Run cargo test + uses: actions-rs/cargo@v1 + with: + command: test + args: --locked