Skip to content

Commit d5bef4f

Browse files
committed
Run all examples in the CI
1 parent 7c8afdd commit d5bef4f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/test.yml renamed to .github/workflows/rust.yml

Lines changed: 25 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,30 @@ 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, macos-latest]
37+
include:
38+
- os: ubuntu-latest
39+
- os: macos-latest
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
with:
44+
submodules: recursive
45+
- uses: actions-rs/toolchain@v1
46+
with:
47+
profile: minimal
48+
toolchain: stable
49+
override: true
50+
- name: Run the examples
51+
run: |
52+
cargo clean
53+
cargo run --example 2>&1 | grep -E '^ ' | xargs -n1 cargo run --example
54+
3155
fmt:
3256
name: Ensure the heed project is formatted
3357
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)