-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add test for multiple os #68
Conversation
@smrpn @hackerchai @PsiACE @GopherJ please review |
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
===========================================
- Coverage 76.03% 65.80% -10.23%
===========================================
Files 3 3
Lines 363 427 +64
===========================================
+ Hits 276 281 +5
- Misses 87 146 +59
Continue to review full report at Codecov.
|
@greenhandatsjtu Can we use docker to replace these platform-specific configuration. You can refer to SQLx's solution. And here is the SQLx Github Actions Conf, we don't need multiple versions of database backend but MySQL, PosgreSQL , SQLite is needed. |
Hi, @hackerchai , currently, docker container is only available on Linux (https://docs.github.com/en/actions/using-containerized-services/about-service-containers#about-service-containers):
As a result, to support tests for windows and macOS, I have to install databases instead of using containers. |
@greenhandatsjtu Thanks for the explanation, you have done good job, thank you for the PR. |
Test project on multiple operating systems via matrix.
ref: casbin/casbin-rs#234
credit to: https://github.com/diesel-rs/diesel/blob/0c6219f5bd9641eea09c6fa7dca4995aefda30a0/.github/workflows/ci.yml
Note: replace
127.0.0.1
withlocalhost
inDATABASE_URL
as a workaround for this this issue: launchbadge/sqlx#846otherwise, build with feature
runtime-xxx-rustls
would fail with errors like: