This repository was archived by the owner on Jan 13, 2025. It is now read-only.
fix: least student logic (#12) #56
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: Continuous Integration > ESLint | |
on: | |
pull_request: | |
push: | |
branches: [main, dev] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
run-eslint: | |
name: Check linting + formatting with ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node env 🏗 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
check-latest: true | |
cache: npm | |
- name: Install dependencies 👨🏻💻 | |
run: npm ci --prefer-offline --no-audit | |
- name: Run linting 🧹 | |
run: npm run lint -- --output-file lint-report.json --format json | |
continue-on-error: ${{ github.event_name == 'pull_request' }} | |
- name: Annotate ESLint results 📝 | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: ataylorme/eslint-annotate-action@v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
report-json: lint-report.json |