mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 21:27:14 +01:00
ts_config, ts_core, web_ui: eslint 10.13.0, typescript-eslint 8.72.0, vitest/coverage-v8 5.0.5, eslint-plugin-unicorn 78.0.0, @eslint-react 5.28.4, react 19.3.1 and the rest the freshness gate flagged; packageManager set via corepack (pnpm 12.15.0 + sha512) and lockfiles regenerated. Lint clean, 100% coverage in all three, dist/ unchanged by rebuild. typescript stays 6.0.3: typescript-eslint 8.72.0 still declares typescript ">=4.8.4 <6.1.0" (fleet-wide allowlist entry). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NBScELfMUiieK9ManFbS3Y
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
name: ts_core tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths: ['ts_core/**', 'ts_config/**']
|
|
pull_request:
|
|
branches: [main]
|
|
paths: ['ts_core/**', 'ts_config/**']
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ts_core
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 12
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24.22.1"
|
|
|
|
# The preset is a `link:../ts_config` dependency. pnpm links the
|
|
# directory but installs nothing inside it, and a flat config imports
|
|
# its plugins from the preset's own node_modules -- so without this
|
|
# step the lint dies on "Cannot find package '@eslint/js'".
|
|
- name: Install the shared lint preset's dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
working-directory: ts_config
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|
|
|
|
- name: Run tests with the 100% coverage gate
|
|
run: pnpm coverage
|
|
|
|
# The tag ships a prebuilt dist/ because Vite does not transpile
|
|
# dependencies. A committed dist/ that does not match src/ would ship
|
|
# stale code to every consumer with no error anywhere, so rebuild and
|
|
# fail if the result differs from what is checked in.
|
|
- name: dist/ is in sync with src/
|
|
run: |
|
|
pnpm build
|
|
if ! git diff --exit-code -- dist; then
|
|
echo "::error::dist/ is stale — run 'pnpm build' in ts_core and commit the result."
|
|
exit 1
|
|
fi
|