Skip to content

chore(ci): Configure eslint in CI #55

chore(ci): Configure eslint in CI

chore(ci): Configure eslint in CI #55

Workflow file for this run

name: Test
on:
pull_request:
env:
IMAGES_HOSTNAME: "*"
jobs:
next-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: yarn
cache-dependency-path: next/yarn.lock
- name: Install eslint (for easier rebasing, could be added to packages.json later)
working-directory: ./next
run: yarn add --dev typescript eslint-config-next 'eslint@^9'
- name: Install dependencies
working-directory: ./next
run: yarn install --frozen-lockfile
- name: Running linter
working-directory: ./next
run: yarn run eslint --output-file ../next-eslint_report.json --format json
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@d57a1193d4c59cbfbf3f86c271f42612f9dbd9e9 # 3.0.0
with:
report-json: "next-eslint_report.json"
only-pr-files: false
continue-on-error: true