mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Add scheduled test to Actions for all features
Add a new job to the Rust workflow to run 'cargo build' and 'cargo test' (on the cron schedule only) with the '--all-features' flag. This will execute across all three environments: Linux, macOS, Windows. Autoformat the Rust workflow file via the Red Hat YAML extension for Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml This straightens out whitespace and string quoting for safer parsing. Fixes #3506.
This commit is contained in:
parent
3d1046369c
commit
76cf1bff87
29
.github/workflows/rust.yml
vendored
29
.github/workflows/rust.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
# Everyday at 5:00am
|
# Everyday at 5:00am
|
||||||
- cron: '0 5 * * *'
|
- cron: "0 5 * * *"
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
# trying and staging branches are for Bors config
|
# trying and staging branches are for Bors config
|
||||||
@ -78,6 +78,33 @@ jobs:
|
|||||||
command: test
|
command: test
|
||||||
args: --locked --release --all
|
args: --locked --release --all
|
||||||
|
|
||||||
|
test-all-features:
|
||||||
|
name: Tests all features on ${{ matrix.os }} on cron schedule only
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-18.04, macos-12, windows-2022]
|
||||||
|
|
||||||
|
if: github.event_name == 'schedule'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Run cargo build with all features
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --workspace --locked --release --all-features
|
||||||
|
|
||||||
|
- name: Run cargo test with all features
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --workspace --locked --release --all-features
|
||||||
|
|
||||||
# We run tests in debug also, to make sure that the debug_assertions are hit
|
# We run tests in debug also, to make sure that the debug_assertions are hit
|
||||||
test-debug:
|
test-debug:
|
||||||
name: Run tests in debug
|
name: Run tests in debug
|
||||||
|
Loading…
Reference in New Issue
Block a user