diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e6e1260906..c2dd70fe57 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -348,6 +348,20 @@ jobs: args: > --manifest-path ${{ matrix.path }} + - name: Check existence of core directory + id: core_dir_exists + uses: andstor/file-existence-action@v1 + with: + files: examples/${{ matrix.path }}/core/Cargo.toml + + - uses: actions-rs/cargo@v1 + if: steps.core_dir_exists.outputs.files_exists == 'true' + with: + command: test + args: > + --manifest-path examples/${{ matrix.path }}/core/Cargo.toml + --features mock + issues-matrix: name: Issues Matrix needs: init