2019-11-21 11:18:54 +01:00
|
|
|
---
|
2020-07-08 09:50:07 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- staging
|
|
|
|
- trying
|
2019-11-21 11:18:54 +01:00
|
|
|
|
2019-12-07 11:57:33 +01:00
|
|
|
name: Test binaries with cargo test
|
2019-11-21 11:18:54 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
2019-12-07 11:57:33 +01:00
|
|
|
name: Test on ${{ matrix.os }}
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-12-10 17:53:26 +01:00
|
|
|
os: [ubuntu-latest, macos-latest]
|
2019-12-07 11:57:33 +01:00
|
|
|
|
2019-11-21 11:18:54 +01:00
|
|
|
steps:
|
2019-12-07 11:57:33 +01:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2020-07-13 18:53:19 +02:00
|
|
|
components: clippy
|
2019-12-07 11:57:33 +01:00
|
|
|
- name: Run cargo test
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
2020-01-22 14:30:09 +01:00
|
|
|
args: --locked --release
|
2020-06-27 15:17:36 +02:00
|
|
|
- name: Run cargo clippy
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
2020-05-22 11:56:00 +02: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
|