-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 969 Bytes
/
Copy pathtest.yml
File metadata and controls
30 lines (29 loc) · 969 Bytes
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
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