Skip to content

Commit

Permalink
Don't fail Code checker workflow… (#67)
Browse files Browse the repository at this point in the history
* Improve workflow
  • Loading branch information
Jym77 authored Nov 27, 2024
1 parent e42036b commit 5b90fe0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/code-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ jobs:
- run: yarn dedupe --check
- run: yarn build
- run: yarn code-checker:start &
- run: yarn code-checker:test
- run: |
status=0
yarn code-checker:test || status=$?
if [ ${status} -ne 0 ]; then
echo "Code Checker failed with exit code ${status}, as expected"
exit 0
fi
exit ${status}
env:
SI_USER_EMAIL: ${{ secrets.SI_USER_EMAIL }}
SI_API_KEY: ${{ secrets.SI_API_KEY }}
- name: Expect failure of previous step
if: ${{ failure() }}
run: echo "Code Checker failed as expected"
SI_API_KEY: ${{ secrets.SI_API_KEY }}

0 comments on commit 5b90fe0

Please sign in to comment.