Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- { node: '16', postgres: &stable_postgres '18' }
- { node: '18', postgres: *stable_postgres }
- { node: '20', postgres: *stable_postgres }
- { node: '22', postgres: *stable_postgres }
- { node: '22', postgres: *stable_postgres, coverage: true }
- { node: '24', postgres: *stable_postgres }
# Latest Node.js version tested against multiple PostgreSQL versions
- { node: &latest_node '26', postgres: '13' }
Expand Down Expand Up @@ -92,4 +92,8 @@ jobs:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn ${{ matrix.coverage && 'coverage' || 'test' }}
- uses: coverallsapp/github-action@v2
if: ${{ matrix.coverage }}
with:
file: coverage/lcov.info
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ dist
.vscode/
manually-test-on-heroku.js
tsconfig.tsbuildinfo

coverage/
.nyc_output/
14 changes: 14 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"all": true,
"include": ["packages/*/index.js", "packages/*/lib/**", "packages/*/src/**", "packages/*/dist/**"],
"exclude": [
"**/*.test.*",
"**/*.d.ts",
"**/test/**",
"**/testing/**",
"packages/pg-protocol/src/b.ts",
"packages/pg-esm-test/**",
"packages/pg-bundler-test/**"
],
"reporter": ["text", "lcov"]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# node-postgres

![Build Status](https://github.com/brianc/node-postgres/actions/workflows/ci.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/brianc/node-postgres/badge.svg?branch=master)](https://coveralls.io/github/brianc/node-postgres?branch=master)
<span class="badge-npmversion"><a href="https://npmjs.org/package/pg" title="View this project on NPM"><img src="https://img.shields.io/npm/v/pg.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/pg" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/pg.svg" alt="NPM downloads" /></a></span>

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"docs:build": "cd docs && yarn build",
"docs:start": "cd docs && yarn dev",
"pretest": "yarn build",
"precoverage": "yarn build",
"coverage": "nyc --silent lerna exec --concurrency 1 --ignore pg-connection-string -- yarn test && nyc --no-clean yarn workspace pg-connection-string mocha",
"prepublish": "yarn build",
"lint": "eslint --cache 'packages/**/*.{js,ts,tsx}'"
},
Expand All @@ -29,6 +31,7 @@
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-prettier": "^5.1.2",
"lerna": "^3.19.0",
"nyc": "^15",
"prettier": "3.0.3",
"typescript": "^6.0.3"
},
Expand Down
Loading