Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rspack-contrib/rspack-ecosystem-ci
Rspack Ecosystem CI
https://github.com/rspack-contrib/rspack-ecosystem-ci
Last synced: about 1 month ago
JSON representation
Rspack Ecosystem CI
- Host: GitHub
- URL: https://github.com/rspack-contrib/rspack-ecosystem-ci
- Owner: rspack-contrib
- License: mit
- Created: 2023-04-06T08:55:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T09:38:10.000Z (about 2 months ago)
- Last Synced: 2024-12-06T12:14:01.442Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://web-infra-dev.github.io/rspack-ecosystem-benchmark/
- Size: 455 KB
- Stars: 10
- Watchers: 11
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rspack-ecosystem-ci
This repository is used to run integration tests for Rspack ecosystem projects
## via github workflow
### scheduled
Workflows are sheduled to run automatically every day
### manually
- open [workflow](../../actions/workflows/ecosystem-ci-selected.yml)
- click 'Run workflow' button on top right of the list
- select suite to run in dropdown
- start workflow## via shell script
- clone this repo
- run `pnpm i`
- run `pnpm test` to run all suites
- or `pnpm test ` to select a suite
- or `tsx ecosystem-ci.ts`You can pass `--tag v2.8.0-beta.1`, `--branch somebranch` or `--commit abcd1234` option to select a specific rspack version to build.
If you pass `--release 2.7.13`, rspack build will be skipped and rspack is fetched from the registry insteadThe repositories are checked out into `workspace` subdirectory as shallow clones
### cheat sheet
- `pnpm test -- --release nightly `: use nightly release to test rspack locally, using release can save time from building rspack locally
- `pnpm test -- --branch main --suite-branch update-rspack `: use update-rspack branch of suite to test main branch rspack# how to add a new integration test
- check out the existing [tests](./tests) and add one yourself. Thanks to some utilities it is really easy
- once you are confidente the suite works, add it to the lists of suites in the [workflows](../../actions/)> the current utilities focus on pnpm based projects. Consider switching to pnpm or contribute utilities for other pms
# reporting results
## Discord
Results are posted automatically to `#ecosystem-ci` on [Rspack discord](https://discord.com/invite/79ZZ66GH9E)
### on your own server
- Go to `Server settings > Integrations > Webhooks` and click `New Webhook`
- Give it a name, icon and a channel to post to
- copy the webhook url
- get in touch with admins of this repo so they can add the webhook#### how to add a discord webhook here
- Go to `/settings/secrets/actions` and click on `New repository secret`
- set `Name` as `DISCORD_WEBHOOK_URL`
- paste the discord webhook url you copied from above into `Value`
- Click `Add secret`## Credits
Thanks to:
- [vitejs/vite-ecosystem-ci](https://github.com/vitejs/vite-ecosystem-ci)
- [vuejs/ecosystem-ci](https://github.com/vuejs/ecosystem-ci)which inspired the development of this project.