🐴 #59
This file contains hidden or 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: Test | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - name: Run formatting check | |
| run: cargo fmt --check | |
| - name: Run clippy | |
| run: cargo clippy -- -D warnings | |
| - name: Check the egui web build | |
| run: cargo check --package factoriosrc-egui --target wasm32-unknown-unknown | |
| - name: Run tests for factoriosrc-lib without default features | |
| run: cargo test --package factoriosrc-lib --no-default-features | |
| - name: Run tests for all packages with all features | |
| run: cargo test --all-features | |
| miri: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust with Miri | |
| uses: dtolnay/rust-toolchain@miri | |
| - name: Run Miri tests | |
| run: cargo miri test test_miri |