mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 12:07:52 +01:00
Moves the standalone React 19 + Vite 8 + TypeScript 6 game from ~/Downloads/reverse/reverse-survivors into reverse_survivors/, so it is version-controlled, indexed, and covered by CI instead of sitting untracked outside any repository. - Relocates the project's nested .github/workflows/ci.yml to the repository root as .github/workflows/reverse-survivors-ci.yml. GitHub only reads workflows from the root, so the nested copy would have been inert — same treatment billsplit received. The workflow is path-scoped to reverse_survivors/** and runs npm ci / check / build on Node 22. - Sets cache-dependency-path on actions/setup-node, since defaults.run.working-directory applies only to run: steps and not to actions; without it the npm cache looks for a lockfile at the root. - Keeps npm and the existing package-lock.json. TypeScript stays pinned at 6.0.3 deliberately: typescript-eslint 8.65 caps its peer range at <6.1.0 and TS 7 drops the JS compiler API that typed linting needs. - Adds a reverse_survivors/ row to the Repository Layout table in README.md and CLAUDE.md. Verified in place: npm ci, npm run check (95 tests, 100% statements / branches / functions / lines), npm run build, and a dev-server smoke check serving /src/main.tsx. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
36 lines
885 B
YAML
36 lines
885 B
YAML
name: reverse-survivors CI
|
|
|
|
# Relocated here from reverse_survivors/.github/workflows/ci.yml when the game
|
|
# moved into this monorepo — GitHub only reads workflows from the repository
|
|
# root, so the nested copy would have been inert.
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "reverse_survivors/**"
|
|
- ".github/workflows/reverse-survivors-ci.yml"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "reverse_survivors/**"
|
|
- ".github/workflows/reverse-survivors-ci.yml"
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: reverse_survivors
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
cache-dependency-path: reverse_survivors/package-lock.json
|
|
- run: npm ci
|
|
- run: npm run check
|
|
- run: npm run build
|