22
22
23
23
jobs :
24
24
lint :
25
- name : Lint
25
+ name : Check and Lint
26
26
runs-on : ubuntu-latest
27
27
28
28
steps :
@@ -37,14 +37,20 @@ jobs:
37
37
repo-token : ${{ secrets.GITHUB_TOKEN }}
38
38
version : ${{ env.PROTOC_VERSION }}
39
39
- uses : actions/checkout@v4
40
+
41
+ - name : Check compiled protos for a diff
42
+ run : |
43
+ make proto-gen check-diff-proto
44
+
40
45
- name : cargo fmt
41
46
run : cargo fmt -- --check --color ${{ env.CARGO_TERM_COLOR }}
47
+
42
48
- name : cargo clippy
43
49
run : cargo clippy
44
50
45
51
46
52
build :
47
- name : Build on rust-${{ matrix.rust-version}}
53
+ name : Test and Build on rust-${{ matrix.rust-version }}
48
54
runs-on : ubuntu-latest
49
55
strategy :
50
56
fail-fast : false
@@ -71,32 +77,27 @@ jobs:
71
77
- name : Run Tests
72
78
run : cargo test --workspace --all-targets --all-features
73
79
74
- test-docs-sdk :
75
- name : Docs SDK
76
- runs-on : ubuntu-latest
77
- env :
78
- RUSTDOCFLAGS : -Dwarnings
79
- steps :
80
- - uses : actions/checkout@v4
81
- - uses : dtolnay/rust-toolchain@nightly
82
- - uses : dtolnay/install@cargo-docs-rs
83
- - run : cargo docs-rs -p dapr
84
-
85
- test-docs-macros :
86
- name : Docs Macros
80
+ test-docs :
81
+ name : Check Docs - ${{ matrix.crate }}
87
82
runs-on : ubuntu-latest
83
+ strategy :
84
+ fail-fast : false
85
+ matrix :
86
+ crate :
87
+ - dapr
88
+ - dapr-macros
88
89
env :
89
90
RUSTDOCFLAGS : -Dwarnings
90
91
steps :
91
92
- uses : actions/checkout@v4
92
93
- uses : dtolnay/rust-toolchain@nightly
93
94
- uses : dtolnay/install@cargo-docs-rs
94
- - run : cargo docs-rs -p dapr-macros
95
+ - run : cargo docs-rs -p ${{ matrix.crate }}
95
96
96
97
publish :
97
98
name : Publish
98
99
runs-on : ubuntu-latest
99
- needs : [test-docs-sdk, test-docs-macros , lint, build]
100
+ needs : [test-docs, lint, build]
100
101
if : startswith(github.ref, 'refs/tags/v')
101
102
102
103
steps :
0 commit comments