Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@
package: rustauth,rustauth-core,rustauth-oauth,rustauth-plugins,rustauth-sqlx
release-type: major

release-order:
name: Release order
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Comment on lines +76 to +77

- name: Test release-order checker
run: python3 -m unittest discover -s scripts/tests -p 'test_check_release_order.py'

- name: Check release order
run: python3 scripts/check_release_order.py

test-crate:
name: Test ${{ matrix.package }}
runs-on: ubuntu-latest
Expand All @@ -79,6 +93,8 @@
nextest_args: --all-features
- package: rustauth-core
nextest_args: --all-features
- package: rustauth-fred
nextest_args: --all-features
- package: rustauth-oauth
nextest_args: --all-features
- package: rustauth-social-providers
Expand Down Expand Up @@ -141,6 +157,7 @@
needs:
- fmt
- clippy
- release-order
- semver
- test-crate
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
--test-threads 1
-E 'not test(schema_and_provider_store_work_when_configured)'
doc_tests: true
- package: rustauth-fred
- package: rustauth-integration-tests
services: redis valkey
nextest_args: --all-features
- package: rustauth-redis
Expand Down
22 changes: 16 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"crates/rustauth-diesel",
"crates/rustauth-fred",
"crates/rustauth-i18n",
"crates/rustauth-integration-tests",
"crates/rustauth-oauth",
"crates/rustauth-oauth-provider",
"crates/rustauth-oidc",
Expand Down
42 changes: 24 additions & 18 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,31 +112,36 @@ The current workspace packages must be published in this order:
12. `rustauth-deadpool-postgres` — depends on `rustauth-core` and
`rustauth-tokio-postgres`.
13. `rustauth-redis` — depends on `rustauth-core`.
14. `rustauth-plugins` — depends on `rustauth-core`, `rustauth-oauth`, and
`rustauth-social-providers`; publish verification also uses
`rustauth-redis` and `rustauth-sqlx`.
15. `rustauth-passkey` — depends on `rustauth-core`; publish verification also
14. `rustauth-passkey` — depends on `rustauth-core`; publish verification also
uses `rustauth-sqlx`.
15. `rustauth-plugins` — depends on `rustauth-core`, `rustauth-oauth`, and
`rustauth-social-providers`; publish verification also uses
`rustauth-passkey`, `rustauth-redis`, and `rustauth-sqlx`.
16. `rustauth-sso` — depends on `rustauth-core`, `rustauth-oauth`,
`rustauth-oidc`, and `rustauth-saml`; publish verification also uses
`rustauth-sqlx`.
17. `rustauth-scim` — depends on `rustauth-core`; publish verification also
uses `rustauth-deadpool-postgres`, `rustauth-plugins`, `rustauth-sqlx`, and
`rustauth-tokio-postgres`.
`rustauth-oidc`, `rustauth-plugins`, and optionally `rustauth-saml`;
publish verification also uses `rustauth-saml` and `rustauth-sqlx`.
17. `rustauth-scim` — depends on `rustauth-core` and `rustauth-plugins`;
publish verification also uses `rustauth-deadpool-postgres`,
`rustauth-sqlx`, and `rustauth-tokio-postgres`.
18. `rustauth-oauth-provider` — depends on `rustauth-core` and
`rustauth-plugins`.
19. `rustauth` — depends on `rustauth-core`,
`rustauth-deadpool-postgres`, `rustauth-diesel`, `rustauth-i18n`,
`rustauth-oidc`, `rustauth-passkey`, `rustauth-plugins`, `rustauth-saml`,
19. `rustauth-fred` — depends on `rustauth-core`. Its cross-crate and live
coverage lives in the unpublished `rustauth-integration-tests` crate.
20. `rustauth` — depends on `rustauth-core` and optionally on
`rustauth-deadpool-postgres`, `rustauth-diesel`, `rustauth-fred`,
`rustauth-i18n`, `rustauth-oauth-provider`, `rustauth-oidc`,
`rustauth-passkey`, `rustauth-plugins`, `rustauth-redis`, `rustauth-saml`,
`rustauth-scim`, `rustauth-sqlx`, `rustauth-sso`, `rustauth-stripe`,
`rustauth-telemetry`, and `rustauth-tokio-postgres`.
20. `rustauth-fred` — depends on `rustauth-core`, and its publish
verification uses a dev-dependency on `rustauth`.
`rustauth-telemetry`, and `rustauth-tokio-postgres`; publish verification
also uses `rustauth-sqlx`.
21. `rustauth-axum` — depends on `rustauth`.
22. `rustauth-actix-web` — depends on `rustauth`.
23. `rustauth-cli` — depends on `rustauth`, `rustauth-core`,
`rustauth-plugins`, `rustauth-sqlx`, and optionally `rustauth-diesel`
(via the `diesel` feature).
23. `rustauth-cli` — depends on `rustauth-core` and optionally on
`rustauth-deadpool-postgres`, `rustauth-diesel`,
`rustauth-oauth-provider`, `rustauth-passkey`, `rustauth-plugins`,
`rustauth-scim`, `rustauth-sqlx`, `rustauth-sso`, `rustauth-stripe`,
`rustauth-telemetry`, and `rustauth-tokio-postgres`; it does not depend on
the `rustauth` facade.

## Crate names

Expand All @@ -152,6 +157,7 @@ workspace currently includes:
- `rustauth-diesel`
- `rustauth-fred`
- `rustauth-i18n`
- `rustauth-integration-tests` — unpublished cross-crate and live test harness
- `rustauth-oidc`
- `rustauth-oauth`
- `rustauth-oauth-provider`
Expand Down
6 changes: 0 additions & 6 deletions crates/rustauth-fred/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ rustauth-core.workspace = true
tokio.workspace = true

[dev-dependencies]
http.workspace = true
rustauth.workspace = true
rustauth-core = { workspace = true, features = ["test-utils"] }
rustauth-plugins.workspace = true
rustauth-redis.workspace = true
serde_json.workspace = true
time.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
url.workspace = true

[features]
default = []
Expand Down
24 changes: 24 additions & 0 deletions crates/rustauth-integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "rustauth-integration-tests"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false

[lib]
path = "src/lib.rs"

[dev-dependencies]
http.workspace = true
rustauth.workspace = true
rustauth-core = { workspace = true, features = ["test-utils"] }
rustauth-fred.workspace = true
rustauth-plugins.workspace = true
rustauth-redis.workspace = true
serde_json.workspace = true
time.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
url.workspace = true

[lints]
workspace = true
1 change: 1 addition & 0 deletions crates/rustauth-integration-tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 5 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ version_group = "rustauth-workspace"
name = "rustauth-fred"
version_group = "rustauth-workspace"

[[package]]
name = "rustauth-integration-tests"
publish = false
release = false

[[package]]
name = "rustauth-i18n"
version_group = "rustauth-workspace"
Expand Down
Loading
Loading