Skip to content

Upgrade @enonic/eslint-config to ESLint 9 #2099

Upgrade @enonic/eslint-config to ESLint 9

Upgrade @enonic/eslint-config to ESLint 9 #2099

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: NPM Install
run: npm ci && npm run install:all
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
if: ${{ matrix.node-version != 'latest' || github.ref_name != 'master' }}
run: npm test
- name: Test & Report coverage
if: ${{ matrix.node-version == 'latest' && github.ref_name == 'master' }}
run: npm run report