From 8dc5c2b65f467307f3970ca8777fb15b26391a85 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 11 Jan 2023 11:34:22 +0100 Subject: [PATCH] Run all examples in the CI --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c2847f1..7dc51dbf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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