From 1ee3d5ff0ea7db642d4097ee5cf619b46e3b7144 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Wed, 25 Dec 2024 20:07:18 +0200 Subject: [PATCH] fix publish --- .github/workflows/node.js.yml | 3 +-- .github/workflows/npm-publish.yml | 11 ++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c0b5873..92b43f9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -34,9 +34,8 @@ jobs: - run: npm ci - run: npm run lint - run: npm run build --if-present - - name: Run tests - run: npm run test + run: npm test env: FALKORDB_HOST: localhost FALKORDB_PORT: 6379 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2a4766d..8d4ae4c 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -10,13 +10,22 @@ on: jobs: build: runs-on: ubuntu-latest + services: + falkordb: + image: falkordb/falkordb:latest + ports: + - 6379:6379 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - run: npm ci - - run: npm test + - name: Run tests + run: npm test + env: + FALKORDB_HOST: localhost + FALKORDB_PORT: 6379 publish-npm: needs: build