-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (22 loc) · 750 Bytes
/
Copy pathci.yml
File metadata and controls
29 lines (22 loc) · 750 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
name: CI
on:
push:
pull_request:
jobs:
windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust components
run: rustup component add rustfmt --toolchain 1.96.0
- name: Check formatting
run: |
cargo fmt --manifest-path crates\usage-core\Cargo.toml -- --check
cargo fmt --manifest-path crates\usage-widget\Cargo.toml -- --check
- name: Test core
run: |
cargo test --manifest-path crates\usage-core\Cargo.toml
cargo test --manifest-path crates\usage-core\Cargo.toml --features net
- name: Check widget
run: cargo check --locked --manifest-path crates\usage-widget\Cargo.toml