mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
042750cb4e
Now that the minimum supported Node.js version is 22, `node --run` is available everywhere. It avoids the npm process-spawn overhead and matches the style already used in package.json scripts. Affects all GitHub Actions workflows that invoke npm scripts and the website/server Dockerfile bundle step. `npm ci` is left as-is since it is npm-specific.
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: autofix.ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: ["main"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
autofix:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: .tool-versions
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run biome with auto-fix
|
|
run: node --run lint-biome
|
|
continue-on-error: true
|
|
|
|
- name: Run oxlint with auto-fix
|
|
run: node --run lint-oxlint
|
|
continue-on-error: true
|
|
|
|
- name: Fix website client linting
|
|
working-directory: website/client
|
|
run: |
|
|
npm ci
|
|
node --run lint
|
|
continue-on-error: true
|
|
|
|
- name: Fix website server linting
|
|
working-directory: website/server
|
|
run: |
|
|
npm ci
|
|
node --run lint
|
|
continue-on-error: true
|
|
|
|
- name: Fix browser extension linting
|
|
working-directory: browser
|
|
run: |
|
|
npm ci
|
|
node --run lint
|
|
continue-on-error: true
|
|
|
|
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
|