Commit Graph

25 Commits

Author SHA1 Message Date
WorldSEnder 3871418174
Modernize github workflows (#3711)
* modernize github workflows

this mainly fixes some inconsistencies in style, outdated or wrong comments and action version
- replace Legit-Labs/action-download-artifact with actions/download-artifact
- fix Swatinem/rust-cache arguments
- fix benchmark transformations
- expand feature soundness lints
- wording and capitalization in comments

* fix no_run on crate level doc

* fix some more small issues
2024-08-22 20:04:04 +05:00
dependabot[bot] 443dba3cf8
Bump actions/checkout from 3 to 4 (#3433)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 19:12:26 +09:00
dependabot[bot] 0f7c2bb276
Bump siku2/action-hosting-deploy from 0 to 1 (#3136)
Bumps [siku2/action-hosting-deploy](https://github.com/siku2/action-hosting-deploy) from 0 to 1.
- [Release notes](https://github.com/siku2/action-hosting-deploy/releases)
- [Commits](https://github.com/siku2/action-hosting-deploy/compare/v0...v1)

---
updated-dependencies:
- dependency-name: siku2/action-hosting-deploy
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 19:47:28 +03:00
dependabot[bot] 16c043ac80
Bump actions/checkout from 2 to 3 (#3137)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-04 22:24:54 +05:00
dependabot[bot] 2b7856823e
Bump jetli/trunk-action from 0.2.0 to 0.4.0 (#3106)
Bumps [jetli/trunk-action](https://github.com/jetli/trunk-action) from 0.2.0 to 0.4.0.
- [Release notes](https://github.com/jetli/trunk-action/releases)
- [Commits](https://github.com/jetli/trunk-action/compare/v0.2.0...v0.4.0)

---
updated-dependencies:
- dependency-name: jetli/trunk-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 23:38:27 +09:00
dependabot[bot] 685e1737bf
Bump jetli/trunk-action from 0.1.0 to 0.2.0 (#3073)
Bumps [jetli/trunk-action](https://github.com/jetli/trunk-action) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/jetli/trunk-action/releases)
- [Commits](https://github.com/jetli/trunk-action/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: jetli/trunk-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 23:24:35 +09:00
dependabot[bot] 20487f574c
Bump Swatinem/rust-cache from 1 to 2 (#3003)
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 1 to 2.
- [Release notes](https://github.com/Swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rust-cache/compare/v1...v2)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 21:47:24 +09:00
Kaede Hoshikawa 5ca91298e9
Update GitHub Actions (#2998)
* Update Workflow.

* Fix Workflows.

* Enables dependabot for github actions.

* Fix workflow.
2022-12-04 23:17:49 +09:00
Muhammad Hamza 2e4a919679
Split the huge workspace into smaller & improve CI (#2774)
* Split repository into multiple workspaces, update CI

* pull_request_target for build-website workflow

This should allow the workflow to read secrets instead of requiring a different, publish-website workflow to be needed to publish the side

* pull_request_target for build-api-docs workflow

This should allow the workflow to read secrets instead of requiring a different, publish-api-docs workflow to be needed to publish the side

* use `paths` instead of `path_ignore` for examples

* cleanup main-checks.yml

* it's rustfmt, not fmt

* correct paths for workflow files

* it's rustfmt, not fmt: part 2 electric bolgoo

* me idiot: part infinity

* ???

* main checks should be the same then?

* ??? part 2

* it should work now

* more fixes

* checkout before using file, actually use stable for wasm-bindgen-cli

* Revert "pull_request_target for build-api-docs workflow"

This reverts commit 38977292c8.

* Revert "pull_request_target for build-website workflow"

This reverts commit 1638a0cd24.

* Benchmark workflow uses pull_request event

* pull_request for size-cmp
2022-07-07 00:17:03 +05:00
Muhammad Hamza 31594245ef
Update examples and their builds in CI (#2652)
- Remove agents example
- Agents example is replaced by web_worker_fib as they both serve the same purpose now that trunk 0.15 has been released
- Clean up CI setup and ensure that examples are deployed in publish-examples.yml as they're built in size-cmp.yml
2022-05-03 16:08:05 +05:00
Matt 6669d1873e
Optimize CI caching and path filtering (#2340)
* fix docs.rs logo url

* fix formatting

* bump docusaurus to beta14

* bring back the semicolon

* cache npm for build-website workflow

* Add prebuilt cargo-sweep binary

* Optimize website CI

* per-job caching, stale cache invalidation

* extract fmt job as workflow
move website test as a prerequisite for publish

* fix typo in cargo-sweep executable path

* chmod +x

* rename to main-checks.yml

* --exclude has to be used with --workspace

* revert accidental revert

* Switch from cargo-sweep to rust-cache

* link to this related issue of extra brackets

* remove blanks

* exclude website-test in main tests

* rename suffixes from .mdx to .md

* replace actions-rs/install with wasm-pack-action

fixes #2351

* shouldn't ignore .md because website snippet tests depends on .md files and there can be
#[doc(include("../some.md"))] in the code

* restore accidentally deleted mdx files

* include tools/website-test (for real this time)
2022-01-18 10:49:11 +01:00
Kaede Hoshikawa d8c2550fc7
Server-side Rendering (without hydration) (#2335)
* Basic render to html implementation.

* Remove HtmlWriter.

* Escape html content.

* Add non-suspense tests.

* Add Suspense tests.

* Gated "ssr" feature.

* Add example.

* Fix tests.

* Fix docs.

* Fix heading size.

* Remove the unused YewRenderer.

* Remove extra comment.

* unify naming.

* Update docs.

* Update docs.

* Update docs.

* Isolate spawn_local.

* Add doc flags.

* Add ssr feature to docs.

* Move ServerRenderer into their own file.

* Fix docs.

* Update features and docs.

* Fix example.

* Adjust comment position.

* Fix effects being wrongly called when a component is suspended.

* Fix clippy.

* Uuid & no double boxing.

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-01-12 18:43:09 +05:00
Muhammad Hamza 18fd2d1f0d
fix CI (#2316) 2021-12-29 14:01:26 +01:00
Julius Lungys c0f584c761
Add multithreading example (#2171)
* correctly reflect the status of multi_thread example

* commiting a partially working example ported from 0.18 to next

* make the app actually start

* remove example from github workflows

* rust-fmt

* cargo make pr-flow done succesfully :)

* update per comments

* fix build errors

* fix cargo fmt

* fix stuff

* Apply suggestions from code review

Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>

* Update examples/web_worker_fib/src/app.rs

Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>

* Remove space

* Update .github/workflows/publish-examples.yml

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>

Co-authored-by: SpanishPear <shrey.somaiya@gmail.com>
Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>
2021-11-23 11:05:01 +00:00
Jet Li 21eca25fd0
Install trunk in 1s for CI/CD (#1808)
Use trunk-action and wasm-bindgen-action
2021-05-03 17:42:39 +02:00
Simon 37401402a1
Allow the use of Rust keywords for element names (#1772)
* time for more hygiene

* update corresponding tests

* while I'm at it

* now let's fix the actual issue

* fix the publish examples CI while I'm at it

* resolve clippy warnings
2021-02-28 15:49:58 +01:00
Simon c72d990bcb
Apply new Clippy lints, examples deployment, and stdweb integration tests (#1651)
* make clippy happy

* fix publish-examples workflow

* disable yew-stdweb integration tests on stable
2020-11-22 22:50:33 +01:00
Simon a959796794
Update to Trunk 0.7 (#1614)
* install trunk from brew

* update examples

* prepare multi_thread (even tho it's still WIP)
2020-10-10 23:58:34 +02:00
Simon e6bf7b8cfe
Firebase Part 3 (#1612) 2020-10-10 21:31:27 +02:00
Simon 7fc5fc602a
Fix Firebase deployment issues (#1610) 2020-10-10 18:54:32 +02:00
Simon 59640766bd
Use Firebase channels for preview deploys (#1608)
* let's try to make firebase channels work

* let's see if this even does anything

* trigger

* add a comment

* separate

* fix syntax

* don't deploy yet

* use action fork

* ah right, it's called main now

* add paths back in

* how did this even happen
2020-10-10 17:50:30 +02:00
Simon 5217ed9347
Use --public-url value in router example (#1597)
* Use --public-url value for router example

* some documentation
2020-10-02 01:11:55 +02:00
Simon 41af85e6c5
Host examples on Firebase (#1582)
* remove getrandom from game_of_life

I know the wasm-bindgen feature is deprecated but this is more convenient for now
and all the other examples use it this way as well.
We can update all of them in one go when rand 0.8 rolls around

* update todomvc README

* clean up yew-macro makefile

See: https://github.com/yewstack/yew/pull/1541#discussion_r488747622

* Use Firebase Hosting
2020-09-22 18:04:32 +02:00
Justin Starry 810586d3c5
Update publish-examples.yml 2020-09-22 10:01:01 +08:00
Simon c946b99610
Overhaul examples (#1559)
* remove old files

* update counter

* update crm example

* Add readme for counter

* update custom_components

* update webgl example

* update two_apps

* update todomvc

* mark special case multithread

* update dashboard

* update examples readme

* file_upload example

* fragments example

* futures example

* game_of_life example

* inner_html example

* js_callback example

* keyed_list example

* remove large_table

* remove minimal

* mount_point example

* I can't count apparently

* nested_list example

* node_refs example

* timer example

* store example

* pub_sub example

* rip npm_and_my_sanity

* use a title™️

* clean up multi_thread

* fix format

* boids part 1

* boids part 2

* add workflow

See: <https://github.com/siku2/yew/pull/13>

* remove my little scratchpad again

* add boids to examples table

* runtime-generated list in  nested_list example

* update workflow

* first batch of yewtil examples

* clippy "futures"

* remove old yew-router examples

* add a new router example to the main examples

* remove remaining yewtil examples

* more progress

* update for testing purposes

* author list

* improve content generation

* revert this mistake

I thought it would be great to use `unimplemented!()` in case the component doesn't have any properties.
This helps avoid the mistake of forgetting to update the change method when adding props later on.
What I didn't consider is that just because the props are () that doesn't mean that Yew isn't going to call it...
So yeah, it's still a good idea for update, but certainly not for change.

* missed a few

* turn router switch example into test

* seems to be working

* make it possible to host the router example on a sub-path

* create a 404 file for SPA

* remove the three examples and update table

* remove the 404 file because it isn't working anyway

* fix small router issue relating to the sub-path hack
2020-09-22 00:17:48 +02:00