Update the action to test on more platforms

This commit is contained in:
Clément Renault 2019-12-07 11:57:33 +01:00
parent 289bc6570b
commit e3611ad0e4
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -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