Skip to content

Commit bb5a1ae

Browse files
diemogebhardtlpil
authored andcommitted
Merge formatting, linting and build steps of GitHub workflow for CI
1 parent ae0e0ca commit bb5a1ae

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ jobs:
4848
command: test
4949
args: --workspace --target ${{ matrix.target }}
5050

51-
rustfmt:
52-
name: rustfmt
51+
format-lint-build:
52+
name: format-lint-build
5353
runs-on: ubuntu-latest
54+
timeout-minutes: 10
5455
steps:
5556
- name: Checkout repository
5657
uses: actions/checkout@v4
@@ -59,26 +60,13 @@ jobs:
5960
uses: dtolnay/rust-toolchain@stable
6061
with:
6162
toolchain: stable
62-
components: rustfmt
63+
components: clippy, rustfmt
6364

6465
- name: Check formatting
6566
run: cargo fmt --all -- --check
6667

67-
lint-build:
68-
name: lint-build
69-
runs-on: ubuntu-latest
70-
timeout-minutes: 10
71-
steps:
72-
- name: Checkout repository
73-
uses: actions/checkout@v4
74-
75-
- name: Install Rust toolchain
76-
uses: dtolnay/rust-toolchain@stable
77-
with:
78-
toolchain: stable
79-
components: clippy
80-
8168
- name: Run linter
8269
run: cargo clippy --workspace
8370

84-
- run: cargo build
71+
- name: Run build
72+
run: cargo build

0 commit comments

Comments
 (0)