Skip to content

Commit

Permalink
chore: add test-all-versions script
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 committed Nov 22, 2021
1 parent 56b018e commit e32c3b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions plugins/node/opentelemetry-instrumentation-pg/.tav.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pg:
# a sample from supported versions
- versions: "8.5.1 || 8.6.0 || 8.7.1"
peerDependencies: pg-pool@^3
commands: npm run test
- versions: "7.3.0 || 7.12.1 || 7.18.2"
peerDependencies: pg-pool@^2
commands: npm run test
4 changes: 3 additions & 1 deletion plugins/node/opentelemetry-instrumentation-pg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"prepare": "npm run compile",
"tdd": "npm run test -- --watch-extensions ts --watch",
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
"test-all-versions": "tav",
"test:debug": "ts-mocha --inspect-brk --no-timeouts -p tsconfig.json 'test/**/*.test.ts'",
"test:local": "cross-env RUN_POSTGRES_TESTS_LOCAL=true npm run test",
"version:update": "node ../../../scripts/version-update.js",
Expand Down Expand Up @@ -67,6 +68,7 @@
"pg": "8.7.1",
"pg-pool": "3.4.1",
"rimraf": "3.0.2",
"test-all-versions": "^5.0.1",
"ts-mocha": "8.0.0",
"typescript": "4.3.5"
},
Expand All @@ -76,4 +78,4 @@
"@types/pg": "8.6.1",
"@types/pg-pool": "2.0.3"
}
}
}

0 comments on commit e32c3b6

Please sign in to comment.