Skip to content

Commit 6aa9c21

Browse files
committed
Run all examples in the CI
1 parent 2d032f7 commit 6aa9c21

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
on: [pull_request]
33

4-
name: Cargo test
4+
name: Rust
55
jobs:
66
check:
77
name: Test the heed project
@@ -28,6 +28,31 @@ jobs:
2828
cargo clean
2929
cargo test
3030
31+
examples:
32+
name: Run the heed examples
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest, windows-latest, macos-latest]
37+
include:
38+
- os: ubuntu-latest
39+
- os: windows-latest
40+
- os: macos-latest
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
with:
45+
submodules: recursive
46+
- uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: stable
50+
override: true
51+
- name: Run the examples
52+
run: |
53+
cargo clean
54+
cargo run --example 2>&1 | grep -E '^ ' | xargs -n1 cargo run --example
55+
3156
fmt:
3257
name: Ensure the heed project is formatted
3358
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)