Skip to content

Commit 665c669

Browse files
committed
Fix format check in CI
1 parent ddd7e82 commit 665c669

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
branches:
4-
- main
4+
- greenboot-rs
55
pull_request:
66

77
name: Continuous integration
@@ -22,20 +22,18 @@ jobs:
2222
skip: "./docs/Gemfile.lock,./docs/_config.yml,./.github,./.git,./greenboot.spec,./dist"
2323

2424
fmt:
25-
name: Rustfmt
25+
name: Cargo fmt
2626
runs-on: ubuntu-latest
27+
container: fedora:latest
2728
steps:
29+
- name: Install deps
30+
run: |
31+
dnf install -y cargo rustfmt
2832
- uses: actions/checkout@v3
29-
- uses: actions-rs/toolchain@v1
30-
with:
31-
profile: minimal
32-
toolchain: stable
33-
override: true
34-
- run: rustup component add rustfmt
3533
- uses: actions-rs/cargo@v1
3634
with:
3735
command: fmt
38-
args: --all -- --check
36+
args: --check --all
3937

4038
clippy:
4139
name: Clippy
@@ -91,9 +89,7 @@ jobs:
9189
uses: actions-rs/cargo@v1
9290
with:
9391
command: test
94-
# - name: Ensure building did not change any code
95-
# run: |
96-
# git diff --exit-code
92+
9793

9894
# manpages:
9995
# name: Test man page generation

0 commit comments

Comments
 (0)