bevy/.github
François 39ea1bb9b7 run examples in wasm in CI (#4818)
# Objective

- Run examples in WASM in CI
- Fix #4817 

## Solution

- on feature `bevy_ci_testing`
  - add an extra log message before exiting
  - when building for wasm, read CI config file at compile time
- add a simple [playwright](https://playwright.dev) test script that opens the browser then waits for the success log, and takes a screenshot
- add a CI job that runs the playwright test for Chromium and Firefox on one example (lighting) and save the screenshots
  - Firefox screenshot is good (with some clusters visible)
  - Chromium screenshot is gray, I don't know why but it's logging `GPU stall due to ReadPixels`
  - Webkit is not enabled for now, to revisit once https://bugs.webkit.org/show_bug.cgi?id=234926 is fixed or worked around
- the CI job only runs on bors validation

example run: https://github.com/mockersf/bevy/actions/runs/2361673465. The screenshots can be downloaded
2022-06-06 20:22:51 +00:00
..
contributing Clean up advice on glob imports in style guide (#4644) 2022-05-02 18:45:00 +00:00
example-run Add an example to test small window sizes (#3597) 2022-04-26 22:15:24 +00:00
ISSUE_TEMPLATE Make bug template more beginner-friendly (#4652) 2022-05-30 22:11:44 +00:00
linters Remove markdown dead link check (#4839) 2022-05-25 05:08:34 +00:00
start-wasm-example run examples in wasm in CI (#4818) 2022-06-06 20:22:51 +00:00
workflows run examples in wasm in CI (#4818) 2022-06-06 20:22:51 +00:00
bors.toml run examples in wasm in CI (#4818) 2022-06-06 20:22:51 +00:00
dependabot.yml dependabot: use new C-Dependencies label 2021-07-13 12:51:48 -07:00
FUNDING.yml Create FUNDING.yml 2020-08-18 10:59:30 -07:00
pull_request_template.md Let contributors know it's okay to delete optional template sections (#4498) 2022-04-16 18:57:51 +00:00