Skip to content

Commit 8a94c99

Browse files
committed
chore: add github ci
1 parent 6f342f0 commit 8a94c99

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["**"]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
concurrency:
10+
group: ci-${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
env:
14+
CARGO_TERM_COLOR: always
15+
16+
jobs:
17+
rust-ci:
18+
name: Rust CI (fmt, check, clippy, test)
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Rustfmt
25+
run: cargo fmt --all -- --check
26+
27+
- name: Cargo check
28+
run: cargo check --workspace --all-targets
29+
30+
- name: Clippy
31+
run: |
32+
cargo clippy -p ferrum-flow --all-targets
33+
cargo clippy -p ferrum-flow-sync-plugin --all-targets
34+
35+
- name: Tests
36+
run: |
37+
cargo test -p ferrum-flow --all-targets --no-fail-fast
38+
cargo test -p ferrum-flow-sync-plugin --all-targets --no-fail-fast

0 commit comments

Comments
 (0)