File tree Expand file tree Collapse file tree
migrations/20260628000000_add_cancelled_abandoned_to_dispute_status Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - name : Install dependencies
2121 run : npm ci
2222
23+ - name : Run npm audit
24+ run : npm audit --audit-level=moderate
25+ continue-on-error : false
26+
27+ - name : Generate audit report
28+ if : always()
29+ run : npm audit --json > audit-report.json || true
30+
31+ - name : Upload audit report
32+ if : always()
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : npm-audit-report
36+ path : audit-report.json
37+
38+ - name : Install license-checker
39+ run : npm install -g license-checker
40+
41+ - name : Check license compliance
42+ run : |
43+ npx license-checker --production --failOn "GPL-2.0;GPL-3.0;AGPL-3.0;SSPL-1.0;EUPL-1.1;OSL-3.0;CPAL-1.0;CPL-1.0;EPL-1.0;EPL-2.0;CDDL-1.0;CDDL-1.1;MPL-2.0" --summary
44+ echo "License compliance check passed"
45+
46+ - name : Generate license report
47+ if : always()
48+ run : |
49+ npx license-checker --production --json --out license-report.json || true
50+
51+ - name : Upload license report
52+ if : always()
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : license-report
56+ path : license-report.json
57+
2358 - name : Cache TypeScript build output
2459 uses : actions/cache@v4
2560 with :
Original file line number Diff line number Diff line change 88jobs :
99 integration-test :
1010 runs-on : ubuntu-latest
11+ timeout-minutes : 20
1112
1213 services :
1314 postgres :
4647 - name : Install dependencies
4748 run : npm ci
4849
50+ - name : Generate Prisma client
51+ run : npx prisma generate
52+
4953 - name : Run database migrations
5054 run : npx prisma migrate deploy
5155
5256 - name : Run integration tests
53- run : npm run test:integration
57+ run : npm run test:integration -- --forceExit
58+
59+ - name : Upload test artifacts on failure
60+ if : failure()
61+ uses : actions/upload-artifact@v4
62+ with :
63+ name : integration-test-results
64+ path : |
65+ test-results/
66+ coverage/
67+ retention-days : 7
Original file line number Diff line number Diff line change 1+ -- AlterEnum
2+ ALTER TYPE " DisputeStatus" ADD VALUE ' CANCELLED' ;
3+ ALTER TYPE " DisputeStatus" ADD VALUE ' ABANDONED' ;
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ enum DisputeStatus {
2222 OPEN
2323 UNDER_REVIEW
2424 RESOLVED
25+ CANCELLED
26+ ABANDONED
2527}
2628
2729model Escrow {
Original file line number Diff line number Diff line change @@ -26,4 +26,6 @@ export enum DisputeStatusEnum {
2626 OPEN = 'OPEN' ,
2727 UNDER_REVIEW = 'UNDER_REVIEW' ,
2828 RESOLVED = 'RESOLVED' ,
29+ CANCELLED = 'CANCELLED' ,
30+ ABANDONED = 'ABANDONED' ,
2931}
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export type NotificationType =
3737 | 'DISPUTED'
3838 | 'COMPLETED'
3939 | 'REFUNDED' ;
40- export type DisputeState = 'OPEN' | 'UNDER_REVIEW' | 'RESOLVED' ;
40+ export type DisputeState = 'OPEN' | 'UNDER_REVIEW' | 'RESOLVED' | 'CANCELLED' | 'ABANDONED' ;
4141
4242export interface EscrowRecord {
4343 id : string ;
You can’t perform that action at this time.
0 commit comments