Skip to content

Commit d0b5e30

Browse files
committed
chore: fixup CI, add format-checking workflow
1 parent c389c05 commit d0b5e30

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/cli-release.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ name: "[impit-cli] Test & Build"
44
on:
55
push:
66
branches:
7-
- "**"
7+
- "master"
88
tags-ignore:
99
- "impit-cli-*"
1010
paths:
1111
- "impit-cli/**"
1212
- "impit/**"
13-
pull_request:
1413

1514
env:
1615
CRATE_NAME: impit-cli

.github/workflows/format.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Check formatting & Clippy
2+
on:
3+
push:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
concurrency:
10+
group: deploy
11+
cancel-in-progress: false
12+
13+
jobs:
14+
fmt:
15+
name: Check code formatting
16+
runs-on: ubuntu-latest
17+
container: rust:slim
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
- name: Install rustfmt
22+
run: rustup component add rustfmt
23+
- name: Check formatting
24+
run: cargo fmt -- --check
25+
clippy:
26+
name: Check code style
27+
runs-on: ubuntu-latest
28+
container: rust:slim
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
- name: Install clippy
33+
run: rustup component add clippy
34+
- name: Check style
35+
run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)