Skip to content

Commit 39bb83c

Browse files
committed
Add CI job for checking examples
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 parent 0d3a5c3 commit 39bb83c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/msrv.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,30 @@ jobs:
137137
with:
138138
command: clippy
139139
args: -- -D warnings
140+
141+
check-examples:
142+
name: Check examples
143+
needs: [check]
144+
runs-on: ubuntu-latest
145+
strategy:
146+
matrix:
147+
rust:
148+
- 1.46.0
149+
- stable
150+
151+
steps:
152+
- name: Checkout sources
153+
uses: actions/checkout@v2
154+
155+
- name: Install toolchain
156+
uses: actions-rs/toolchain@v1
157+
with:
158+
toolchain: ${{ matrix.rust }}
159+
override: true
160+
161+
- name: Run cargo check
162+
uses: actions-rs/cargo@v1
163+
with:
164+
command: check
165+
args: --examples
166+

0 commit comments

Comments
 (0)