Skip to content

Commit 76901a8

Browse files
chore(ci): setup Gitlab CI
1 parent cd363e9 commit 76901a8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.gitlab-ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
stages:
2+
- test
3+
4+
rust:deny:
5+
stage: test
6+
image: rust:1.86-alpine3.21
7+
before_script:
8+
- apk add cargo-deny
9+
script:
10+
- cargo deny check
11+
12+
rust:fmt:
13+
stage: test
14+
image: rust:1.86-alpine3.21
15+
before_script:
16+
- rustup component add rustfmt
17+
script:
18+
- cargo fmt -- --check
19+
20+
rust:clippy:
21+
stage: test
22+
image: rust:1.86-alpine3.21
23+
before_script:
24+
- apk add musl-dev
25+
- rustup component add clippy
26+
script:
27+
- cargo clippy --all-features -- -D warnings
28+
29+
rust:test:
30+
stage: test
31+
image: rust:1.86-alpine3.21
32+
before_script:
33+
- apk add musl-dev
34+
script:
35+
- cargo test

0 commit comments

Comments
 (0)