Skip to content

Commit

Permalink
Add install-lib-only to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Dec 13, 2024
1 parent 09b4c5b commit 2f35bee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2f35bee

Please sign in to comment.