Skip to content

Commit

Permalink
feat: allow skipping unit tests if none are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Feb 18, 2022
1 parent 0ac603f commit c4ef8d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ runs:
- name: Run unit tests
shell: bash
run: npm run test:unit
run: |
if npm run | grep -q "test:unit" ; then
echo "Unit test script found"
npm run test:unit
else
echo "No unit tests defined, skipping..."
fi
- name: Run integration tests
shell: bash
Expand Down

0 comments on commit c4ef8d8

Please sign in to comment.