Skip to content

Commit c9d2cac

Browse files
committed
ci: Two fixes
1 parent 8498fd8 commit c9d2cac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# This is copied from https://github.com/rust-analyzer/rust-analyzer/blob/master/.github/workflows/ci.yaml
2+
# But I added rustfmt too.
23
name: CI
34
on:
45
pull_request:
56
push:
67
branches:
78
- main
8-
- ci-test
99

1010
env:
1111
CARGO_INCREMENTAL: 0
@@ -39,11 +39,14 @@ jobs:
3939
override: true
4040
components: rustfmt, rust-src
4141

42+
- name: rustfmt
43+
run: cargo fmt --all -- --check
44+
4245
- name: Cache Dependencies
4346
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
4447

4548
- name: Compile
46-
run: cargo test --no-run --locked
49+
run: cargo test --no-run
4750

4851
- name: Test
4952
run: cargo test -- --nocapture --quiet

0 commit comments

Comments
 (0)