Skip to content

Commit

Permalink
Update workflow job to run mock test if core folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
shpun817 committed Jul 21, 2022
1 parent d0e2a63 commit 8eee82d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8eee82d

Please sign in to comment.