File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ stages :
2
+ - 📦 Build
3
+ - 🔬 Static Analysis
4
+ - 🤞🏼 Testing
5
+
6
+ default :
7
+ image : rust:1.83
8
+
9
+ 🚧 cargo-build :
10
+ stage : 📦 Build
11
+ script :
12
+ - cargo build
13
+ artifacts :
14
+ expire_in : 1 day
15
+ paths : [target]
16
+
17
+ 🎨 cargo-fmt :
18
+ stage : 🔬 Static Analysis
19
+ needs : []
20
+ before_script :
21
+ - rustup component add rustfmt
22
+ script :
23
+ - cargo fmt --all -- --check
24
+
25
+ 📎 cargo-clippy :
26
+ stage : 🔬 Static Analysis
27
+ needs : []
28
+ before_script :
29
+ - rustup component add clippy
30
+ script :
31
+ - cargo clippy --all-features --all-targets -- --deny warnings
32
+
33
+ 📈 rust-lsif :
34
+ stage : 🔬 Static Analysis
35
+ needs : []
36
+ allow_failure : true # recommended
37
+ before_script :
38
+ - rustup component add rust-analyzer
39
+ script :
40
+ - rust-analyzer lsif . > dump.lsif
41
+ artifacts :
42
+ reports :
43
+ lsif : dump.lsif
44
+
45
+ ✅ cargo-nextest :
46
+ stage : 🤞🏼 Testing
47
+ needs : [🚧 cargo-build]
48
+ before_script :
49
+ - curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
50
+ script :
51
+ - cargo nextest run --profile ci
52
+ artifacts :
53
+ paths : [target/nextest/ci/junit.xml]
54
+ reports :
55
+ junit : target/nextest/ci/junit.xml
You can’t perform that action at this time.
0 commit comments