-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.19 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI Rust -> Check code and make git version
on:
push:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
check-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use cached deps
uses: actions/cache@v4
with:
path: target
key: static-deps-data
- name: Configurate rust
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: clippy
run: cargo clippy --all-targets -F full -r -- -D warnings
# Test all code by parts
- name: Test code
run: cargo test -p shuller -F full -r --lib;
- name: Test code and tests
run: cargo test -p shuller tests -F full -r;
- name: Tests doc
run: cargo test -F full --doc -r
create-version:
needs: check-code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: target
key: static-deps-data
- name: Create Release Pull Request
uses: cargo-bins/release-pr@v2.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: patch