mirror of
https://github.com/projectdysnomia/dysnomia.git
synced 2026-12-02 13:48:31 +02:00
Migrates Dysnomia over to pnpm. Might also do some housekeeping while at it. Short list of changes: (entries will be added here as needed) - Migrated to pnpm. CI has been updated relatively blindly and will need some testing beforehand. - A lock file is now included for local development - Actions are pinned to their commit SHA - Updated some dependencies - tsconfig.json now targets ES2025 + modern Node.js module resolution -
26 lines
891 B
YAML
26 lines
891 B
YAML
name: JavaScript/TypeScript linting
|
|
on: [ pull_request ]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint all files
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version: lts/*
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
|
|
with:
|
|
cache: true
|
|
- name: Install dependencies
|
|
# Ignore build scripts as pnpm ignores the optionality of peer dependencies in
|
|
# the root package.json, forcing some of the native dependencies to be installed
|
|
run: pnpm i --no-optional --frozen-lockfile --ignore-scripts
|
|
- name: Lint all files
|
|
run: pnpm run lint
|