Skip to content

Commit a29fd1d

Browse files
committed
Add gh actions clippy/test
1 parent 9fbcfc3 commit a29fd1d

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# CI workflow runs all source quality tests. It does not build the release binary.
2+
#
3+
name: PortelloCI
4+
5+
on:
6+
push:
7+
branches: [ main, actions_test ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
qc:
13+
name: Portello source QC
14+
15+
env:
16+
RUST_BACKTRACE: 1
17+
CARGO_TERM_COLOR: always
18+
19+
runs-on: ubuntu-22.04
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Install rust
26+
uses: dtolnay/rust-toolchain@master
27+
with:
28+
toolchain: 1.89.0
29+
components: clippy, rustfmt
30+
31+
- name: Check source formatting
32+
run: cargo fmt --check
33+
34+
- name: Build
35+
run: cargo build --verbose
36+
37+
- name: Test
38+
run: cargo test --verbose
39+
40+
- name: Clippy
41+
run: cargo clippy --verbose -- -D warnings
42+
43+
- name: Clippy on tests
44+
run: cargo clippy --tests --verbose -- -D warnings

0 commit comments

Comments
 (0)