We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e0ee3c commit fc03533Copy full SHA for fc03533
.github/workflows/rust.yml
@@ -2,21 +2,24 @@ name: Rust
2
3
on:
4
push:
5
- branches: [ "main", "dev" ]
+ branches: ["main", "dev"]
6
pull_request:
7
8
9
env:
10
CARGO_TERM_COLOR: always
11
12
jobs:
13
build:
14
-
15
runs-on: ubuntu-latest
16
17
steps:
18
- - uses: actions/checkout@v4
19
- - name: Build
20
- run: cargo build --verbose
21
- - name: Run tests
22
- run: cargo test --verbose
+ - uses: actions/checkout@v4
+ - name: Install Rust
+ run: rustup update stable
+ - name: Check formatting
+ run: cargo fmt -- --check
+ - name: Build
23
+ run: cargo build --verbose
24
+ - name: Run tests
25
+ run: cargo test --verbose
0 commit comments