File tree Expand file tree Collapse file tree 6 files changed +302
-579
lines changed
Expand file tree Collapse file tree 6 files changed +302
-579
lines changed Original file line number Diff line number Diff line change 88
99jobs :
1010 build :
11-
1211 runs-on : ubuntu-latest
12+ env :
13+ XCLIENTIDSANDBOX : ${{ secrets.XCLIENTIDSANDBOX }}
14+ XCLIENTSECRETSANDBOX : ${{ secrets.XCLIENTSECRETSANDBOX }}
1315
1416 steps :
1517 - uses : actions/checkout@v4
18+
1619 - name : Use Node.js
1720 uses : actions/setup-node@v3
1821 with :
1922 node-version : ' 21.x'
23+
2024 - name : Install dependencies
21- run : npm install && npm install coveralls --save-dev
25+ run : npm install
26+
2227 - name : Run Tests
23- run : CLIENT_ID=$PG_CLIENT_ID SECRET_KEY=$PG_CLIENT_SECRET npm test && cd coverage && ls && cd .. && cat coverage/lcov.info | npx coveralls
24- env :
25- PG_CLIENT_ID : ${{ secrets.XCLIENTIDSANDBOX }}
26- PG_CLIENT_SECRET : ${{ secrets.XCLIENTSECRETSANDBOX }}
27- COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
28+ run : npm test
Original file line number Diff line number Diff line change 44dist
55coverage
66package-lock.json
7- test-results
7+ test-results
8+ .env
9+ .env /
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ module.exports = {
22 preset : "ts-jest" ,
33 testEnvironment : "node" ,
44 coverageReporters : [ "lcov" ] ,
5+ testPathIgnorePatterns : [ ".*\\.test\\.ts$" ] , // ignore TypeScript tests
56} ;
Original file line number Diff line number Diff line change 2222 "scripts" : {
2323 "build" : " tsc && tsc -p tsconfig.esm.json" ,
2424 "prepare" : " npm run build" ,
25- "test" : " jest --coverage && coveralls < coverage/lcov.info "
25+ "test" : " jest"
2626 },
2727 "dependencies" : {
28- "axios " : " 1.7.7 " ,
29- "@sentry/node " : " ^7.73.0 "
28+ "@sentry/node " : " ^7.73.0 " ,
29+ "axios " : " 1.7.7 "
3030 },
3131 "devDependencies" : {
3232 "@types/chai" : " ^4.3.10" ,
3939 "mocha-junit-reporter" : " ^2.2.1" ,
4040 "sinon" : " ^17.0.1" ,
4141 "ts-jest" : " ^29.1.1" ,
42- "typescript" : " ^4.9.5"
42+ "typescript" : " ^4.9.5" ,
43+ "dotenv" : " ^16.5.0"
4344 }
4445}
You can’t perform that action at this time.
0 commit comments