Skip to content

Commit 8d557e7

Browse files
authored
Merge pull request #41 from warpdotdev/aloke/add_ci
Add CI for workflows
2 parents 043aea0 + 0c0e8ff commit 8d557e7

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
lints:
9+
name: Formatting + Clippy
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v3
14+
15+
- name: Install Rust toolchain
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
override: true
21+
components: rustfmt, clippy
22+
23+
- name: Run cargo build
24+
uses: actions-rs/cargo@v1
25+
with:
26+
command: build
27+
28+
- name: Run cargo fmt
29+
uses: actions-rs/cargo@v1
30+
with:
31+
command: fmt
32+
33+
- name: Run cargo clippy
34+
uses: actions-rs/cargo@v1
35+
with:
36+
command: clippy
37+
args: -- -D warnings
38+
39+
- name: Run clippy on tests
40+
uses: actions-rs/cargo@v1
41+
with:
42+
command: clippy
43+
args: --tests -- -D warnings

0 commit comments

Comments
 (0)