Skip to content

refactor: Reporting into FileReport #12984

refactor: Reporting into FileReport

refactor: Reporting into FileReport #12984

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
verify_files:
name: Verify Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install Packages
run: npm install
- name: Install Docs Packages
working-directory: docs
run: npm install
- name: Lint Files (eslint)
uses: trunk-io/trunk-action@v1
with:
# Run on everything except the docs folder.
arguments: --ignore=docs/** --filter=eslint
check-mode: all
- name: Lint Files (other)
uses: trunk-io/trunk-action@v1
with:
# Run on everything except the docs folder.
arguments: --ignore=docs/** --filter=-eslint
- name: Check Rule Files
run: node Makefile checkRuleFiles
- name: Check Licenses
run: node Makefile checkLicenses
- name: Lint Docs Files (eslint)
uses: trunk-io/trunk-action@v1
with:
# Run only on the docs folder.
arguments: --ignore=** --ignore=!docs/** --filter=eslint
check-mode: all
- name: Lint Docs Files (other)
uses: trunk-io/trunk-action@v1
with:
# Run only on the docs folder.
arguments: --ignore=** --ignore=!docs/** --filter=-eslint
- name: Check Rule Examples
run: node Makefile checkRuleExamples
- name: Check Rule Types
run: npm run lint:rule-types
- name: Lint Files, Dependencies, & Exports
run: npm run lint:unused
test_on_node:
name: Test
strategy:
matrix:
os: [ubuntu-latest]
node: [24.x, 22.x, 20.x, 18.x, "18.18.0"]
NODE_OPTIONS: [""]
include:
- os: windows-latest
node: "lts/*"
- os: macOS-latest
node: "lts/*"
- os: ubuntu-latest
node: 24.x
# `--experimental-strip-types` is enabled by default in Node.js 24.x.
# This additional environment is necessary only to test `--experimental-transform-types`,
# as it is not enabled by default in any Node.js version yet.
NODE_OPTIONS: "--experimental-transform-types"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install Packages
run: npm install
- name: Test
env:
NODE_OPTIONS: ${{ matrix.NODE_OPTIONS }}
run: node Makefile mocha
- name: Fuzz Test
run: node Makefile fuzz
- name: Test EMFILE Handling
run: npm run test:emfile
test_on_browser:
name: Browser Test
runs-on: ubuntu-latest
env:
TERM: xterm-256color
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20" # Should be the same as the version used on Netlify to build the ESLint Playground
- name: Install Packages
run: npm install
- name: Test
run: node Makefile cypress
- name: Fuzz Test
run: node Makefile fuzz
test_types:
name: Test Types of ${{ matrix.package.name }}
runs-on: ubuntu-latest
strategy:
matrix:
package:
[
{ name: eslint, directory: . },
{
name: eslint-config-eslint,
directory: packages/eslint-config-eslint,
},
{ name: "@eslint/js", directory: packages/js },
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install Packages
run: npm install
- name: Install Packages for ${{ matrix.package.name }}
working-directory: ${{ matrix.package.directory }}
run: npm install
- name: Test types for ${{ matrix.package.name }}
working-directory: ${{ matrix.package.directory }}
run: npm run test:types
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy