Skip to content

Commit d2e2099

Browse files
committed
Adding basic CI setup (rustfmt + clippy)
1 parent 4dc2b1b commit d2e2099

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
merge_group:
3+
types: [checks_requested]
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
name: BuFFI CI
8+
9+
jobs:
10+
rustfmt_and_clippy:
11+
name: Check rustfmt style && run clippy
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/[email protected]
16+
with:
17+
components: clippy, rustfmt
18+
- name: Set environment variables
19+
shell: bash
20+
run: |
21+
echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
22+
echo "RUSTDOCFLAGS=-D warnings" >> $GITHUB_ENV
23+
- name: Run clippy
24+
run: cargo clippy --workspace
25+
-name: Run rustfmt
26+
run: cargo fmt --all --check

0 commit comments

Comments
 (0)