-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: introduce ci task * refactor(ci): rename cargo make task runner * ci: add ci workflow * ci: remove redundant workflows
- Loading branch information
Showing
17 changed files
with
93 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
matrix-job: | ||
name: CI | ||
strategy: | ||
matrix: | ||
directory: | ||
[ | ||
integrations/actix, | ||
integrations/axum, | ||
integrations/viz, | ||
integrations/utils, | ||
leptos, | ||
leptos_config, | ||
leptos_dom, | ||
leptos_hot_reload, | ||
leptos_macro, | ||
leptos_reactive, | ||
leptos_server, | ||
meta, | ||
router, | ||
server_fn, | ||
server_fn/server_fn_macro_default, | ||
server_fn_macro, | ||
] | ||
uses: ./.github/workflows/run-cargo-make-task.yml | ||
with: | ||
directory: ${{ matrix.directory }} | ||
cargo_make_task: "ci" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[tasks.check] | ||
alias = "check-all" | ||
|
||
[tasks.check-all] | ||
command = "cargo" | ||
args = ["+nightly", "check-all-features"] | ||
install_crate = "cargo-all-features" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[tasks.pre-clippy] | ||
env = { CARGO_MAKE_CLIPPY_ARGS = "--all-targets --all-features -- -D warnings" } | ||
|
||
[tasks.check-style] | ||
dependencies = ["check-format-flow", "clippy-flow"] | ||
|
||
[tasks.check-format] | ||
env = { LEPTOS_PROJECT_DIRECTORY = "../" } | ||
args = ["fmt", "--", "--check", "--config-path", "${LEPTOS_PROJECT_DIRECTORY}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
extend = [ | ||
{ path = "./check.toml" }, | ||
{ path = "./lint.toml" }, | ||
{ path = "./test.toml" }, | ||
] | ||
|
||
[env] | ||
RUSTFLAGS = "" | ||
LEPTOS_OUTPUT_NAME = "ci" # allows examples to check/build without cargo-leptos | ||
|
||
[env.github-actions] | ||
RUSTFLAGS = "-D warnings" | ||
|
||
[tasks.check] | ||
alias = "check-all" | ||
|
||
[tasks.check-all] | ||
command = "cargo" | ||
args = ["+nightly", "check-all-features"] | ||
install_crate = "cargo-all-features" | ||
|
||
[tasks.test] | ||
alias = "test-all" | ||
[tasks.ci] | ||
dependencies = ["lint", "test"] | ||
|
||
[tasks.test-all] | ||
command = "cargo" | ||
args = ["+nightly", "test-all-features"] | ||
install_crate = "cargo-all-features" | ||
[tasks.lint] | ||
dependencies = ["check-format-flow"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[tasks.test] | ||
alias = "test-all" | ||
|
||
[tasks.test-all] | ||
command = "cargo" | ||
args = ["+nightly", "test-all-features"] | ||
install_crate = "cargo-all-features" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
extend = { path = "../../cargo-make/main.toml" } | ||
|
||
[tasks.check-format] | ||
env = { LEPTOS_PROJECT_DIRECTORY = "../../" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
extend = { path = "../../cargo-make/main.toml" } | ||
|
||
[tasks.check-format] | ||
env = { LEPTOS_PROJECT_DIRECTORY = "../../" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
extend = { path = "../../cargo-make/main.toml" } | ||
|
||
[tasks.check-format] | ||
env = { LEPTOS_PROJECT_DIRECTORY = "../../" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
extend = { path = "../../cargo-make/main.toml" } | ||
|
||
[tasks.check-format] | ||
env = { LEPTOS_PROJECT_DIRECTORY = "../../" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
extend = { path = "../../cargo-make/main.toml" } | ||
|
||
[tasks.check-format] | ||
env = { LEPTOS_PROJECT_DIRECTORY = "../../" } |