Skip to content

Commit 80050d9

Browse files
Merge pull request #158 from lumeohq/dmitry/ci-housekeeping
Housekeeping
2 parents 0834ded + 6da2e8c commit 80050d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+813
-1350
lines changed

.github/workflows/rust.yml

+29-25
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ on:
88

99
jobs:
1010
build:
11+
runs-on: ubuntu-latest
12+
continue-on-error: true
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: dtolnay/rust-toolchain@stable
17+
- uses: Swatinem/rust-cache@v2
18+
- name: Run tests
19+
run: cargo test
20+
21+
clippy:
22+
runs-on: ubuntu-latest
23+
continue-on-error: true
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/rust-toolchain@stable
28+
with:
29+
components: clippy
30+
- name: Catch common mistakes
31+
run: cargo clippy --workspace --tests --all-targets -- -D warnings
1132

33+
rustfmt:
1234
runs-on: ubuntu-latest
35+
continue-on-error: true
1336

1437
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions-rs/toolchain@v1
17-
with:
18-
toolchain: stable
19-
default: true
20-
profile: minimal
21-
components: rustfmt, clippy
22-
- name: Build
23-
uses: actions-rs/cargo@v1
24-
with:
25-
command: build
26-
- name: Run tests
27-
uses: actions-rs/cargo@v1
28-
with:
29-
command: test
30-
- name: Check formatting
31-
uses: actions-rs/cargo@v1
32-
with:
33-
command: fmt
34-
args: -- --check
35-
- name: Catch common mistakes
36-
uses: actions-rs/cargo@v1
37-
with:
38-
command: clippy
39-
args: --all-targets -- -D warnings
38+
- uses: actions/checkout@v4
39+
- uses: dtolnay/rust-toolchain@stable
40+
with:
41+
components: rustfmt
42+
- name: Check formatting
43+
run: cargo fmt -- --check

.rustfmt.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use_small_heuristics = "Max"

0 commit comments

Comments
 (0)