diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c88e82f..cc30f3f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -21,9 +21,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: yarn install - - run: yarn lint - - run: yarn test + cache: 'npm' + - run: npm install + - run: npm run lint + - run: npm test env: PGHOST: localhost PGPORT: 5432 diff --git a/.gitignore b/.gitignore index 5fd5f34..ff2b125 100644 --- a/.gitignore +++ b/.gitignore @@ -14,8 +14,6 @@ dist *.map npm-debug.log* -yarn-debug.log* -yarn-error.log* # IDE .vscode diff --git a/package.json b/package.json index 0e9b9b3..129b6e8 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,7 @@ "pg:clean": "docker rm -f graffypg", "pg:psql": "docker run --name pgrepl -e POSTGRES_PASSWORD=graffy -d postgres:alpine && until docker exec -it pgrepl psql -U postgres; do sleep 0.5; done ; docker rm -f pgrepl" }, - "workspaces": [ - "src/*" - ], + "workspaces": ["src/*"], "author": "aravindet", "license": "Apache-2.0", "bugs": { @@ -62,4 +60,4 @@ "pg": "^8.0.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } -} \ No newline at end of file +} diff --git a/src/pg/test/setup.js b/src/pg/test/setup.js index c0d09d7..281cafc 100644 --- a/src/pg/test/setup.js +++ b/src/pg/test/setup.js @@ -47,7 +47,7 @@ export async function setupPgServer() { 'Possible reasons:\n' + '1. You might not have Docker installed.\n' + '2. The last test run might not have exited properly.\n' + - ' Run yarn pg:clean to fix this.\n' + + ' Run npm run pg:clean to fix this.\n' + 'Docker might have printed a detailed error message above.', );