Newer
Older
pull_request:
branches:
- master
jobs:
check-style:
name: Check style
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt
- name: Rust Cache
uses: Swatinem/[email protected]
uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check
- name: Cargo clippy
uses: actions-rs/[email protected]
- name: Check rustdoc links
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
check-code:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Cargo check all targets (use Cargo.toml in workspace)
uses: actions-rs/[email protected]
args: --all-targets
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
- name: Cargo check HTTP client
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path http-client/Cargo.toml
- name: Cargo check HTTP server
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path http-server/Cargo.toml
- name: Cargo check WS client
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path ws-client/Cargo.toml
- name: Cargo check WS server
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path ws-server/Cargo.toml
- name: Cargo check types
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path types/Cargo.toml
- name: Cargo check utils
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path utils/Cargo.toml
- name: Cargo check proc macros
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path proc-macros/Cargo.toml
- name: Cargo check test utils
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path test-utils/Cargo.toml
- name: Cargo check examples
uses: actions-rs/[email protected]
with:
command: check
args: --manifest-path examples/Cargo.toml
name: Run tests Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Cargo build
uses: actions-rs/[email protected]
with:
command: build
args: --workspace
- name: Cargo test
uses: actions-rs/[email protected]
with:
command: test
tests_macos:
name: Run tests macos
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
- name: Install Rust stable toolchain
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Cargo build
uses: actions-rs/[email protected]
with:
command: build
args: --workspace
- name: Cargo test
uses: actions-rs/[email protected]
with:
command: test
tests_windows:
name: Run tests Windows
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/[email protected]
- name: Install Rust stable toolchain
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/[email protected]
uses: actions-rs/[email protected]
with:
command: build
args: --workspace
- name: Cargo test
uses: actions-rs/[email protected]