Skip to content

Commit

Permalink
chore: Failing workflow at the end instead of immediate failure for l…
Browse files Browse the repository at this point in the history
…inting.
  • Loading branch information
Alirezaja1384 committed Aug 19, 2024
1 parent 7cbb093 commit 98eee83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: npm install

- name: Lint code
id: lint
continue-on-error: true
run: npm run lint

- name: Run tests
Expand All @@ -39,3 +41,9 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Fail if linting failed
if: ${{ steps.lint.outcome == 'failure' }}
run: |
echo "Linting failed. Failing the workflow."
exit 1

0 comments on commit 98eee83

Please sign in to comment.