Skip to content

Add customized example #93

Add customized example

Add customized example #93

Workflow file for this run

name: Test Node.js package
on: push
jobs:
build:
strategy:
matrix:
version: [18, 20, 22]
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Setup Node v${{ matrix.version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Run linting
run: npm run lint
- name: Run tests
run: npm test
- name: Build TypeScript files
run: npm run build
- name: Test ESLint 9 recommended example for compatibility
run: |
cd examples/recommended
npm ci
(npm run lint || true) | grep -aq "Type of name in User is not matching the TypeORM column type (expected type: string)"
- name: Test ESLint 9 customized example for compatibility
run: |
cd examples/customized
npm ci
(npm run lint || true) | grep -aq "The nullability of name in User should be set to the default value"
- name: Test legacy example for compatibility
run: |
# Workaround for scoping preferring new config files
mv eslint.config.mjs _eslint.config.mjs
cd examples/legacy
npm ci
(npm run lint || true) | grep -aq "Type of name in User is not matching the TypeORM column type (expected type: string)"