[DEV-18547] Feature - Support ESLint v9 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ESLint Smoke Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
uses: prezly/setup-github-actions@v1 | |
with: | |
pnpm: 9.7.0 | |
node: 20 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run ESLint (Expecting failure) | |
continue-on-error: true | |
run: | | |
cd tests/react-ts | |
pnpm lint | |
lint_exit_code=$? | |
echo "The exit code of pnpm lint is: $lint_exit_code" | |
if [ $lint_exit_code -eq 0 ]; then | |
echo "ESLint passed, which is unexpected. Marking this as a failure." | |
exit 1 | |
else | |
echo "ESLint failed, which is expected. Marking this as a success." | |
exit 0 | |
fi |