| 1 | on: |
| 2 | push: |
| 3 | branches: ["main"] |
| 4 | |
| 5 | name: CI |
| 6 | |
| 7 | jobs: |
| 8 | test: |
| 9 | name: Test |
| 10 | runs-on: ubuntu-latest |
| 11 | env: |
| 12 | RUSTFLAGS: -D warnings |
| 13 | steps: |
| 14 | - uses: actions/checkout@v4 |
| 15 | - name: Install Rust nightly |
| 16 | uses: dtolnay/rust-toolchain@nightly |
| 17 | - name: Test with default features |
| 18 | run: cargo test |
| 19 | - name: Test with all features |
| 20 | run: cargo test --all-features |
| 21 | - name: Test with no features |
| 22 | run: cargo test --tests --no-default-features |
| 23 | - name: Test with feature alloc |
| 24 | run: cargo test --tests --no-default-features -F alloc |
| 25 | - name: Test with feature impl-error |
| 26 | run: cargo test --tests --no-default-features -F impl-error |
| 27 | - name: Test with feature net |
| 28 | run: cargo test --tests --no-default-features -F net |