Update(demo): limit value in load function #12
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 Workflow | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- name: Install Dependencies | |
run: npm install -g pnpm && pnpm i --frozen-lockfile | |
- name: Run ESLint | |
run: pnpm run lint | |
- name: Check for auto-fix changes | |
run: | | |
changes=$(git status --porcelain) | |
if [ -n "$changes" ]; then | |
echo "ESLint auto-fix changes detected. Please fix them locally and push again." | |
exit 1 | |
fi |