| 1 | name: Rust Stable |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | branches: [main] |
| 8 | |
| 9 | jobs: |
| 10 | check: |
| 11 | name: Check |
| 12 | runs-on: ubuntu-latest |
| 13 | steps: |
| 14 | - uses: actions/checkout@v2 |
| 15 | - uses: actions-rs/toolchain@v1 |
| 16 | with: |
| 17 | toolchain: stable |
| 18 | profile: minimal |
| 19 | override: true |
| 20 | - name: Run tests (no default features) |
| 21 | uses: actions-rs/cargo@v1 |
| 22 | with: |
| 23 | command: test |
| 24 | args: --no-default-features |
| 25 | - name: Run tests (default features) |
| 26 | uses: actions-rs/cargo@v1 |
| 27 | with: |
| 28 | command: test |
| 29 | - name: Run tests (serde) |
| 30 | uses: actions-rs/cargo@v1 |
| 31 | with: |
| 32 | command: test |
| 33 | args: --features serde |
| 34 | - name: Run tests (float_deserialize) |
| 35 | uses: actions-rs/cargo@v1 |
| 36 | with: |
| 37 | command: test |
| 38 | args: --features float_deserialize |
| 39 | - name: Run tests (all features) |
| 40 | uses: actions-rs/cargo@v1 |
| 41 | with: |
| 42 | command: test |
| 43 | args: --all-features |
| 44 | - name: Run tests (release build) |
| 45 | uses: actions-rs/cargo@v1 |
| 46 | with: |
| 47 | command: test |
| 48 | args: --release |
| 49 | |
| 50 |