Skip to content

Bump eslint from 8.57.1 to 9.11.0 #98

Bump eslint from 8.57.1 to 9.11.0

Bump eslint from 8.57.1 to 9.11.0 #98

Workflow file for this run

# Workflow for testing of node-red-retry using github actions / Node.js.
# The workflow will do a checkout, installation of dependencies and run tests.
#
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: CI Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
NODEJS_DEFAULT_VERSION: 20.x
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.NODEJS_DEFAULT_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODEJS_DEFAULT_VERSION }}
- name: Install dev dependencies
run: npm install --save-dev
- name: Run eslint
run: npm run lint
unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
# https://nodered.org/docs/faq/node-versions
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run unit tests
run: npm run coverage
# Save coverage report in https://coveralls.io
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.node-version }}
parallel: true
finish:
needs: [lint, unit-test]
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true