From 2f35bee1274bd855b91f6d9e2afa8e8b271afb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6ssler?= Date: Fri, 13 Dec 2024 14:55:40 +0100 Subject: [PATCH] Add install-lib-only to Makefile --- .github/workflows/lint-code.yml | 2 +- .github/workflows/unit-test.yml | 2 +- Makefile | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index 68850ce1d..d4d254903 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -12,6 +12,6 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: make install + - run: make install-lib-only - run: make build - run: make lint diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 3ee27d140..026058e56 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -74,7 +74,7 @@ jobs: - name: Add local.aikido.io to /etc/hosts run: | sudo echo "127.0.0.1 local.aikido.io" | sudo tee -a /etc/hosts - - run: make install + - run: make install-lib-only - run: make build - run: make test-ci - name: "Upload coverage" diff --git a/Makefile b/Makefile index 87116b624..a2e8cdfee 100644 --- a/Makefile +++ b/Makefile @@ -88,14 +88,17 @@ fastify-clickhouse: hono-prisma: cd sample-apps/hono-prisma && AIKIDO_DEBUG=true AIKIDO_BLOCK=true node app.js -.PHONY: install -install: +.PHONY: install-lib-only +install-lib-only: mkdir -p build node scripts/copyPackageJSON.js touch build/index.js cd build && npm link npm install cd library && npm install + +.PHONY: install +install: install-lib-only cd end2end && npm install node scripts/install.js