-
-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.12 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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,ahash --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