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