From a892594ab25e3adbbaad2467995d1725785eb4fb Mon Sep 17 00:00:00 2001 From: gnezim Date: Sat, 25 Apr 2026 02:30:36 +0300 Subject: [PATCH] ci: wire test-ci entry point for bash script tests --- Makefile | 7 ++++++- package.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f50c214f..63c4252a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help dev dev-full stop status logs build build-remote build-both test test-coverage lint typecheck e2e check clean install sync +.PHONY: help dev dev-full stop status logs build build-remote build-both test test-coverage lint typecheck e2e check clean install sync test-ci help: @echo "Aeroflot.Flights.Web — Available commands:" @@ -22,6 +22,7 @@ help: @echo " make lint - Lint code (ESLint)" @echo " make typecheck - Type check (TypeScript)" @echo " make check - Run typecheck + lint + test" + @echo " make test-ci - Run CI script unit tests (bash)" @echo "" @echo " E2E Testing:" @echo " make e2e - Run Playwright E2E tests" @@ -117,3 +118,7 @@ sync: # Setup install: $(PNPM) install + +# CI-script unit tests +test-ci: + $(PNPM) test:ci diff --git a/package.json b/package.json index 9a27ca4b..2e392459 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "check-coverage": "node scripts/ci/check-coverage-delta.mjs", "test:e2e": "playwright test", "test:e2e:angular": "playwright test --config=playwright-angular.config.ts tests/e2e-angular/cross-app/", + "test:ci": "bash -c 'shopt -s nullglob; for f in tests/ci/test-*.sh; do echo \"--- $f ---\"; bash \"$f\" || exit 1; done'", "proxy": "node scripts/api-proxy.mjs", "dev:full": "node scripts/dev-server.mjs", "compare:visual": "tsx tests/parity/visual/screenshot-diff-multi.ts && tsx tests/parity/visual/generate-report.ts",