Tests #161
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
merge_group: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tests (including doctests) | |
run: cargo test -F full | |
- name: Install cargo-hack | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-hack | |
- name: Check a few configurations | |
run: | | |
cargo hack --feature-powerset --exclude-features=default,full check | |
- name: Run examples | |
shell: bash | |
run: | | |
pushd merde | |
EXAMPLES=($(cd examples && for i in *; do echo "${i%.rs}"; done)) | |
for example in "${EXAMPLES[@]}"; do | |
cargo run --features full --example "$example" | |
done | |
popd | |
- name: Test zerodeps-example | |
shell: bash | |
run: | | |
pushd zerodeps-example | |
cargo check | |
cargo check --features=merde | |
cargo tree --prefix none --no-dedupe | grep -v compact_str | |
cargo tree --prefix none --no-dedupe --features=merde | grep compact_str | |
popd |