File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 8383 test_on_windows :
8484 name : Test on Windows
8585 runs-on : windows-latest
86- env :
87- TEST_DB_URL : postgres://postgres:testpass@localhost:5432/postgres
88- services :
89- postgres :
90- image : postgres:16-alpine
91- env :
92- POSTGRES_USER : postgres
93- POSTGRES_PASSWORD : testpass
94- POSTGRES_DB : postgres
95- ports :
96- - 5432:5432
9786 steps :
9887 - name : Checkout the source code
9988 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 9898 let ctx = f ( ctx) . await . expect ( "Test failed" ) ;
9999 ctx. finish ( ) . await ;
100100 } else {
101- panic ! ( "Aborting; `TEST_DB_URL` was not passed" ) ;
101+ // The github CI does not yet support running containers on Windows,
102+ // meaning that the test suite would fail.
103+ if cfg ! ( unix) {
104+ panic ! ( "Aborting; `TEST_DB_URL` was not passed" ) ;
105+ } else {
106+ eprintln ! (
107+ "Skipping database test on platform {} `TEST_DB_URL` was not passed" ,
108+ std:: env:: consts:: OS
109+ ) ;
110+ }
102111 }
103112}
You can’t perform that action at this time.
0 commit comments