Skip to content

Extract action handlers and clean up server's index.ts #127

Extract action handlers and clean up server's index.ts

Extract action handlers and clean up server's index.ts #127

Workflow file for this run

# Name of the workflow
name: Lint Code
on:
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Cache Node.js modules
id: cache-npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npx eslint .