Skip to content

Commit f5dd943

Browse files
committed
Add CI (#1)
* Add CI Signed-off-by: Esteve Fernandez <[email protected]> * Added clippy Signed-off-by: Esteve Fernandez <[email protected]> --------- Signed-off-by: Esteve Fernandez <[email protected]>
1 parent 9c88bb9 commit f5dd943

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/rust.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: dtolnay/rust-toolchain@stable
20+
with:
21+
components: clippy
22+
- name: Build
23+
run: cargo build --verbose
24+
- name: Run tests
25+
run: cargo test --verbose
26+
- uses: giraffate/clippy-action@v1
27+
with:
28+
reporter: 'github-pr-review'
29+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)