2019-11-21 18:18:54 +08:00
|
|
|
---
|
2020-07-08 15:50:07 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- staging
|
|
|
|
- trying
|
2019-11-21 18:18:54 +08:00
|
|
|
|
2019-12-07 18:57:33 +08:00
|
|
|
name: Test binaries with cargo test
|
2019-11-21 18:18:54 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
2019-12-07 18:57:33 +08:00
|
|
|
name: Test on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-12-11 00:53:26 +08:00
|
|
|
os: [ubuntu-latest, macos-latest]
|
2019-12-07 18:57:33 +08:00
|
|
|
|
2019-11-21 18:18:54 +08:00
|
|
|
steps:
|
2019-12-07 18:57:33 +08:00
|
|
|
- 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
|
2020-01-22 21:30:09 +08:00
|
|
|
args: --locked --release
|
2020-05-22 17:56:00 +08:00
|
|
|
build-image:
|
|
|
|
name: Test the build of Docker image
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- run: docker build . --file Dockerfile -t meilisearch
|
|
|
|
name: Docker build
|