Skip to content

Commit

Permalink
Run all examples in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Jan 11, 2023
1 parent 2d032f7 commit 6aa9c21
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
on: [pull_request]

name: Cargo test
name: Rust
jobs:
check:
name: Test the heed project
Expand All @@ -28,6 +28,31 @@ jobs:
cargo clean
cargo test
examples:
name: Run the heed examples
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run the examples
run: |
cargo clean
cargo run --example 2>&1 | grep -E '^ ' | xargs -n1 cargo run --example
fmt:
name: Ensure the heed project is formatted
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6aa9c21

Please sign in to comment.