129 Commits

Author SHA1 Message Date
Chris Tsang
4b5fd9388e Cleanup feature flags 2023-12-14 17:06:51 +00:00
Chris Tsang
b043f84aec Update example list 2023-12-14 16:43:35 +00:00
Billy Chan
b401851511
CI: whitelist examples runs 2023-12-14 20:03:30 +08:00
Chris Tsang
5db05c8251
Update bug-report.md 2023-12-01 10:07:16 +00:00
Chris Tsang
d0a162acfe
Delete .github/ISSUE_TEMPLATE/feature-request.md 2023-12-01 10:04:51 +00:00
Chris Tsang
c7510df009
Update config.yml 2023-12-01 10:03:29 +00:00
Chris Tsang
1f8707af64
Update config.yml 2023-12-01 09:59:10 +00:00
Billy Chan
c81f4d3705
CI: ignore examples/rocket_okapi_example 2023-11-06 21:08:33 +08:00
Billy Chan
4e6c1c6a56
build-tools 2023-07-27 21:48:26 +08:00
darkmmon
84be56e01a
update example's dependency versions (#1759)
* version update, all examples marked with #notcomplete does not compile with cargo run

* WIP

* salvo example fixed

* testing, and boost a minor version

* fmt

* build dependency update

* CI

* cleanup

---------

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2023-07-25 16:12:44 +08:00
Billy Chan
2eeb93567c
[CI] run fmt checks with nightly toolchain (#1780) 2023-07-25 13:49:16 +08:00
Billy Chan
49c494aa6c
CI Fixup (#1777) 2023-07-24 18:26:44 +08:00
Billy Chan
c64a46a683
[CI] Compile & test each examples on a single instance (#1767)
* Try

* Try

* Ignore examples root folder

* Try

* Try

* Try

* Try

* Try

* Try
2023-07-20 21:46:52 +08:00
Chris Tsang
b4c1a692f5 Edit 2023-07-12 20:26:35 +08:00
Billy Chan
faf222698c
[CI] Fix example fmt (#1719)
* [CI] Fix example fmt

* CI should failed, try the fmt check still works

* Revert "CI should failed, try the fmt check still works"

This reverts commit 2fea8a236b94e677a32ca89415153e53eb600279.
2023-06-23 19:07:49 +08:00
Chris Tsang
c4f1a3c4af Give up
This reverts commit 27af2c9c056be580d22d3a32fd0f766cf4443e3c.
2023-06-22 17:05:33 +08:00
Chris Tsang
27af2c9c05 cargo fmt check 2023-06-22 07:42:48 +08:00
Chris Tsang
320cbf5b75 Remove nightly from Examples 2023-06-22 16:08:09 +08:00
Billy Chan
b4eecf9cd8
Create release-bot.yml 2023-05-08 14:47:55 +08:00
Billy Chan
c33cbb23fa
ci: disable clippy checks on sea-orm-cli until we upgraded clap to v4 (clap-rs/clap#4849) 2023-04-22 00:50:46 +08:00
Billy Chan
9a727ac4b0
ci: Do not deny warnings until we upgraded clap to v4 (clap-rs/clap#4849) 2023-04-22 00:33:11 +08:00
Billy Chan
2c082558df
Generate entity for duplicated many-to-many paths (#1435)
* Generate entity for duplicated many-to-many paths

* CI: run cargo fmt with nightly channel
2023-04-13 11:16:49 +08:00
Chris Tsang
1c3c7af7b8 Update Issue Template 2023-02-22 14:39:23 +08:00
Chris Tsang
81c860e414 Trying to cleanup CI 2023-01-28 08:30:00 +08:00
Billy Chan
b21abf617f
Fix clippy warnings (#1437) 2023-01-31 16:46:44 +08:00
Billy Chan
23b6e66c2e
[CI] use dtolnay/rust-toolchain (#1284)
* Try dtolnay/rust-toolchain

* Fixup

* Remove deprecated set-output

* Fixup

* Remove unused
2022-12-06 20:38:23 +08:00
Billy Chan
775568080b
Update CI 2022-11-10 23:36:40 +08:00
Billy Chan
4255a0abb8
Update issue template 2022-11-10 15:40:23 +08:00
Billy Chan
309dd816b6
Update issue template 2022-11-10 15:22:47 +08:00
Billy Chan
708fea5ecc
Update issue template 2022-11-10 14:58:12 +08:00
Billy Chan
6e6abd17cd
Revert "Update issue template"
This reverts commit 46bebb37758e2363acc547b4cc7e278953958ada.
2022-11-10 14:45:23 +08:00
Billy Chan
46bebb3775
Update issue template 2022-11-10 14:44:50 +08:00
Chris Tsang
695c80e2b3 Revert "Update issue templates"
This reverts commit 90ec2e5527e2975c2c3ce04cefc24ee271945d6c.
2022-11-10 13:27:59 +08:00
Chris Tsang
90ec2e5527
Update issue templates 2022-11-10 13:25:43 +08:00
Billy Chan
ccfb59f74a
Skip running CI on MD changes 2022-11-03 17:14:56 +08:00
Billy Chan
4cf58af4b1
Skip running CI on MD changes (#1184) 2022-11-03 10:35:27 +08:00
Billy Chan
a6a1e184a4
[CI] upgrade actions/checkout to v3 (#1131) 2022-10-19 14:25:02 +08:00
Chris Tsang
ae0231d4a5 CI 2022-10-16 17:25:58 +08:00
Billy Chan
207e2df484
Should run this and cancel previous CI 2022-09-26 00:30:15 +08:00
Sanford Pun
5143307b3e
Demonstrate how to mock test SeaORM by separating core implementation from the web API (#890)
* Move core implementations to a standalone crate

* Set up integration test skeleton in `core`

* Demonstrate mock testing with query

* Move Rocket api code to a standalone crate

* Add mock execution

* Add MyDataMyConsent in COMMUNITY.md (#889)

* Add MyDataMyConsent in COMMUNITY.md

* Update MyDataMyConsent description in COMMUNITY.md

* Update COMMUNITY.md

Chronological order

* [cli] bump sea-schema to 0.9.3 (SeaQL/sea-orm#876)

* Update CHNAGELOG PR links

* 0.9.1 CHANGELOG

* Auto discover and run all issues & examples CI (#903)

* Auto discover and run all [issues] CI

* Auto discover and run all examples CI

* Fixup

* Testing

* Test [issues]

* Compile prepare_mock_db() conditionally based on "mock" feature

* Update workflow job to run mock test if `core` folder exists

* Update Actix3 example

* Fix merge conflict human error

* Update usize used in paginate to u64 (PR#789)

* Update sea-orm version in the Rocket example to 0.10.0

* Fix GitHub workflow to run mock test for core crates

* Increase the robustness of core crate check by verifying that the `core` folder is a crate

* Update Actix(4) example

* Update Axum example

* Update GraphQL example

* Update Jsonrpsee example

* Update Poem example

* Update Tonic example

* Cargo fmt

* Update Salvo example

* Update path of core/Cargo.toml in README.md

* Add mock test instruction in README.md

* Refactoring

* Fix Rocket examples

Co-authored-by: Amit Goyani <63532626+itsAmitGoyani@users.noreply.github.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-09-23 12:57:43 +08:00
kyoto7250
dd545441d3
introduce rustfmt (#919)
* introduce rustfmt

* Cargofmt on all sea-orm crates & examples

* Revert testing script

* cargo fmt --manifest-path sea-orm-rocket/Cargo.toml --all

* add a script for formatting

* add nightly component for formatting

* set timeout and manual nightly install  in github action

* add flag for manifest-path

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-08-01 18:30:43 +08:00
Billy Chan
87a9eb9d15
Run CI only on latest PR commit (#920)
* Run CI only on latest PR commit

* CI of previous commit should be cancelled...

* Revert
2022-07-28 12:00:04 +08:00
Billy Chan
41116499e0
Auto discover and run all issues & examples CI (#903)
* Auto discover and run all [issues] CI

* Auto discover and run all examples CI

* Fixup

* Testing

* Test [issues]
2022-07-21 13:46:12 +08:00
Billy Chan
1a3e8c456a
[CI] run clippy checks & fix clippy warnings (#840)
* Run clippy checks

* Fix clippy warnings

* Clippy checks for `sea-orm-*` crates

* Fix clippy warnings

* Fixup
2022-07-10 15:38:38 +08:00
Chris Tsang
5ff6063fe1 Reduce CI burden 2022-07-02 14:19:54 +08:00
Billy Chan
1ea8b457bf
Bump CI actions/cache to v3 (#784) 2022-06-02 16:34:59 +08:00
Chris Tsang
7d36e43ac1 CI 2022-05-14 23:11:54 +08:00
Billy Chan
9d2cae44b3
Migrator CLI Fixup (#708)
* CI compile migrator CLI

* sea-orm-migration's CLI with only migration subcommand

* Fix clippy warnings

* Fixup

* `sea-orm-cli migrate init`: write sea-orm-migration version based on CLI version
2022-05-10 23:24:23 +08:00
Chris Tsang
59576b9d47 Sunset Postgres 9 2022-05-10 00:16:07 +08:00
Billy Chan
840f8f6148
DeriveEntityModel macros override column name (#695)
* Override column name with the name of model field in `DeriveEntityModel` macros [issues]

* Fixup: trim prefix and tailing underscore

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 22:08:59 +08:00