chore(ci): run all examples under stable and fix remaining linting issue (#2503)

This commit is contained in:
Greg Johnston 2024-04-05 16:09:23 -04:00 committed by GitHub
parent a1a989011a
commit ab1c4ca7a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 49 additions and 51 deletions

View file

@ -29,4 +29,4 @@ jobs:
with: with:
directory: ${{ matrix.directory }} directory: ${{ matrix.directory }}
cargo_make_task: "ci" cargo_make_task: "ci"
toolchain: nightly-2024-03-31 toolchain: stable

View file

@ -24,4 +24,4 @@ jobs:
with: with:
directory: ${{ matrix.directory }} directory: ${{ matrix.directory }}
cargo_make_task: "ci" cargo_make_task: "ci"
toolchain: nightly-2024-03-31 toolchain: stable

View file

@ -3,5 +3,5 @@ alias = "check-all"
[tasks.check-all] [tasks.check-all]
command = "cargo" command = "cargo"
args = ["+nightly-2024-03-31", "check-all-features"] args = ["check-all-features"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"

View file

@ -3,5 +3,5 @@ alias = "test-all"
[tasks.test-all] [tasks.test-all]
command = "cargo" command = "cargo"
args = ["+nightly-2024-03-31", "test-all-features"] args = ["test-all-features"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"

View file

@ -15,13 +15,13 @@ clear = true
dependencies = ["check-debug", "check-release"] dependencies = ["check-debug", "check-release"]
[tasks.check-debug] [tasks.check-debug]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["check-all-features"] args = ["check-all-features"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"
[tasks.check-release] [tasks.check-release]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["check-all-features", "--release"] args = ["check-all-features", "--release"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"

View file

@ -1,11 +1,11 @@
[tasks.build] [tasks.build]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["build-all-features"] args = ["build-all-features"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"
[tasks.check] [tasks.check]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["check-all-features"] args = ["check-all-features"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"

View file

@ -12,13 +12,13 @@ clear = true
dependencies = ["check-debug", "check-release"] dependencies = ["check-debug", "check-release"]
[tasks.check-debug] [tasks.check-debug]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["check-all-features"] args = ["check-all-features"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"
[tasks.check-release] [tasks.check-release]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["check-all-features", "--release"] args = ["check-all-features", "--release"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -5,13 +5,13 @@ extend = [
] ]
[tasks.build] [tasks.build]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["build-all-features", "--target", "wasm32-unknown-unknown"] args = ["build-all-features", "--target", "wasm32-unknown-unknown"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"
[tasks.check] [tasks.check]
toolchain = "nightly-2024-03-31" toolchain = "stable"
command = "cargo" command = "cargo"
args = ["check-all-features", "--target", "wasm32-unknown-unknown"] args = ["check-all-features", "--target", "wasm32-unknown-unknown"]
install_crate = "cargo-all-features" install_crate = "cargo-all-features"

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "nightly-2024-03-31" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "nightly-2024-03-31" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -33,7 +33,7 @@ async fn portal() {
// check HTML // check HTML
assert_eq!( assert_eq!(
div.inner_html(), div.inner_html(),
"<!-- <App> --><div><button id=\"btn-show\">\n Show Overlay\n </button><!-- <Show> --><!-- <DynChild> --><!-- <> --><div>Show</div><!-- <Portal> --><!-- <() /> --><!-- </Portal> --><!-- </> --><!-- </DynChild> --><!-- </Show> --></div><!-- </App> --><div><!-- <> --><div style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white;\"><p>This is in the body element</p><button id=\"btn-hide\">\n Close Overlay\n </button><button id=\"btn-toggle\">\n Toggle inner\n </button><!-- <Show> --><!-- <DynChild> -->Hidden<!-- </DynChild> --><!-- </Show> --></div><!-- </> --></div>" "<!-- <App> --><div><button id=\"btn-show\">Show Overlay</button><!-- <Show> --><!-- <DynChild> --><!-- <> --><div>Show</div><!-- <Portal> --><!-- <() /> --><!-- </Portal> --><!-- </> --><!-- </DynChild> --><!-- </Show> --></div><!-- </App> --><div><!-- <> --><div style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white;\"><p>This is in the body element</p><button id=\"btn-hide\">Close Overlay</button><button id=\"btn-toggle\">Toggle inner</button><!-- <Show> --><!-- <DynChild> -->Hidden<!-- </DynChild> --><!-- </Show> --></div><!-- </> --></div>"
); );
let toggle_button = document let toggle_button = document
@ -45,8 +45,8 @@ async fn portal() {
assert_eq!( assert_eq!(
div.inner_html(), div.inner_html(),
"<!-- <App> --><div><button id=\"btn-show\">\n Show Overlay\n </button><!-- <Show> --><!-- <DynChild> --><!-- <> --><div>Show</div><!-- <Portal> --><!-- <() /> --><!-- </Portal> --><!-- </> --><!-- </DynChild> --><!-- </Show> --></div><!-- </App> --><div><!-- <> --><div style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white;\"><p>This is in the body element</p><button id=\"btn-hide\">\n Close Overlay\n </button><button id=\"btn-toggle\">\n Toggle inner\n </button><!-- <Show> --><!-- <DynChild> --><!-- <> -->\n Visible\n <!-- </> --><!-- </DynChild> --><!-- </Show> --></div><!-- </> --></div>" "<!-- <App> --><div><button id=\"btn-show\">Show Overlay</button><!-- <Show> --><!-- <DynChild> --><!-- <> --><div>Show</div><!-- <Portal> --><!-- <() /> --><!-- </Portal> --><!-- </> --><!-- </DynChild> --><!-- </Show> --></div><!-- </App> --><div><!-- <> --><div style=\"position: fixed; z-index: 10; width: 100vw; height: 100vh; top: 0; left: 0; background: rgba(0, 0, 0, 0.8); color: white;\"><p>This is in the body element</p><button id=\"btn-hide\">Close Overlay</button><button id=\"btn-toggle\">Toggle inner</button><!-- <Show> --><!-- <DynChild> --><!-- <> -->Visible<!-- </> --><!-- </DynChild> --><!-- </Show> --></div><!-- </> --></div>"
); );
let hide_button = document let hide_button = document
.get_element_by_id("btn-hide") .get_element_by_id("btn-hide")
@ -57,8 +57,6 @@ async fn portal() {
assert_eq!( assert_eq!(
div.inner_html(), div.inner_html(),
"<!-- <App> --><div><button id=\"btn-show\">\n Show \ "<!-- <App> --><div><button id=\"btn-show\">Show Overlay</button><!-- <Show> --><!-- <DynChild> --><!-- <() /> --><!-- </DynChild> --><!-- </Show> --></div><!-- </App> -->"
Overlay\n </button><!-- <Show> --><!-- <DynChild> --><!-- \
<() /> --><!-- </DynChild> --><!-- </Show> --></div><!-- </App> -->"
); );
} }

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -96,8 +96,8 @@ fn Post() -> impl IntoView {
}; };
let post_view = move || { let post_view = move || {
post().and_then(|post| { post().map(|post| {
Ok(view! { view! {
// render content // render content
<h1>{&post.title}</h1> <h1>{&post.title}</h1>
<p>{&post.content}</p> <p>{&post.content}</p>
@ -107,7 +107,7 @@ fn Post() -> impl IntoView {
// when it's first served // when it's first served
<Title text=post.title.clone()/> <Title text=post.title.clone()/>
<Meta name="description" content=post.content.clone()/> <Meta name="description" content=post.content.clone()/>
}) }
}) })
}; };

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -96,8 +96,8 @@ fn Post() -> impl IntoView {
}; };
let post_view = move || { let post_view = move || {
post().and_then(|post| { post().map(|post| {
Ok(view! { view! {
// render content // render content
<h1>{&post.title}</h1> <h1>{&post.title}</h1>
<p>{&post.content}</p> <p>{&post.content}</p>
@ -107,7 +107,7 @@ fn Post() -> impl IntoView {
// when it's first served // when it's first served
<Title text=post.title.clone()/> <Title text=post.title.clone()/>
<Meta name="description" content=post.content.clone()/> <Meta name="description" content=post.content.clone()/>
}) }
}) })
}; };

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "nightly-2024-03-31" channel = "stable" # test change

View file

@ -1,2 +1,2 @@
[toolchain] [toolchain]
channel = "stable" channel = "stable" # test change