Skip to content

fix(ci): add ESLint configuration and fix lint errors #3

fix(ci): add ESLint configuration and fix lint errors

fix(ci): add ESLint configuration and fix lint errors #3

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- 'src/**'
- '__tests__/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- '.github/workflows/build.yml'
push:
branches: [main]
paths:
- 'src/**'
- '__tests__/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig.json'
- '.github/workflows/build.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format:check
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Build
run: npm run build