File tree 2 files changed +10
-12
lines changed
2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 83
83
test_on_windows :
84
84
name : Test on Windows
85
85
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
97
86
steps :
98
87
- name : Checkout the source code
99
88
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 98
98
let ctx = f ( ctx) . await . expect ( "Test failed" ) ;
99
99
ctx. finish ( ) . await ;
100
100
} 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
+ }
102
111
}
103
112
}
You can’t perform that action at this time.
0 commit comments