Skip to content

Fix eslint

Fix eslint #821

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["20.x", "22.x", "24.x"]
os: [ubuntu-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Lint
run: npm run lint
- name: Test
run: npm run test --ci --maxWorkers=2
- name: Build
run: npm run build
update_docs_coverage:
name: Update docs and code coverage
needs: [build]
if: github.ref == 'refs/heads/main'
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Use Node 24
uses: actions/setup-node@v4
with:
node-version: "24.x"
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Build
run: npm run build
- name: Generate code coverage
run: npm run test --ci --coverage --maxWorkers=2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Create the docs directory locally in CI
run: npm run build-docs
- name: Deploy the docs
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs