Remybar lint check for pr #1
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: Linting | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: yarn --prefer-offline | |
- name: Linting | |
run: yarn lint:fix --quiet | |
- name: Check for changes | |
run: git diff --exit-code | |
- name: Comment on PR if lint fails | |
if: ${{ failure() }} | |
run: | | |
echo "Lint checks failed. Please review and fix the issues." | |
exit 1 |