Skip to content

Update npm dependencies #126

Update npm dependencies

Update npm dependencies #126

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Check:
runs-on: ubuntu-24.04
env:
ESLINT_CACHE_DIR: /tmp/.eslintcache
steps:
- name: Checkout Repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: lts/*
- name: Install pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6
with:
version: latest
- name: Restore ESLint cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ${{ env.ESLINT_CACHE_DIR }}
key: eslint-${{ runner.os }}-${{ hashFiles('eslint.config.js') }}
restore-keys: |
eslint-${{ runner.os }}-${{ hashFiles('eslint.config.js') }}
eslint-${{ runner.os }}
- name: Install dependencies
run: |
pnpm install --frozen-lockfile --ignore-scripts
- name: Check codebase via Oxlint
run: |
pnpm exec oxlint --type-check --type-aware --deny-warnings src
- name: Check codebase via ESLint
run: |
pnpm exec eslint src --cache --cache-location $ESLINT_CACHE_DIR
- name: Check for formatting
run: |
pnpm exec oxfmt --check src