-
-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: enable ecosystem-ci on main branch (#8932)
- Loading branch information
1 parent
77e6c4a
commit 99f77c8
Showing
3 changed files
with
9 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -359,63 +359,10 @@ jobs: | |
# reason for excluding https://github.com/napi-rs/napi-rs/issues/2200 | ||
run: cargo miri test --workspace --exclude rspack_node -- --nocapture | ||
|
||
run_benchmark: | ||
name: Run benchmark | ||
runs-on: ubuntu-latest | ||
# TODO: enable it after security tokens are added | ||
# if: github.ref_name == 'main' && github.repository_owner == 'web-infra-dev' | ||
if: false | ||
steps: | ||
- name: Run Benchmark | ||
uses: convictional/[email protected] | ||
with: | ||
owner: ${{ github.repository_owner }} | ||
repo: "rspack-ecosystem-benchmark" | ||
workflow_file_name: "bench_rspack_commit.yml" | ||
github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }} | ||
ref: "main" | ||
client_payload: '{"commit_sha":"${{ github.sha }}"}' | ||
|
||
run_ecosystem_ci: | ||
name: Run Ecosystem CI | ||
runs-on: ubuntu-latest | ||
# TODO: enable it after security tokens are added | ||
# if: github.ref_name == 'main' && github.repository_owner == 'web-infra-dev' | ||
if: false | ||
steps: | ||
- name: Run Ecosystem CI | ||
id: eco_ci | ||
continue-on-error: true | ||
uses: convictional/[email protected] | ||
with: | ||
owner: "rspack-contrib" | ||
repo: "rspack-ecosystem-ci" | ||
workflow_file_name: "ecosystem-ci-from-commit.yml" | ||
github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }} | ||
ref: "main" | ||
client_payload: '{"commitSHA":"${{ github.sha }}","repo":"web-infra-dev/rspack","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}' | ||
|
||
- if: steps.eco_ci.outcome == 'failure' | ||
uses: actions/checkout@v4 | ||
- if: steps.eco_ci.outcome == 'failure' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Send Failure Notification | ||
if: steps.eco_ci.outcome == 'failure' | ||
shell: bash | ||
run: ./scripts/alert/lark.js | ||
env: | ||
TITLE: Ecosystem CI failed on main branch | ||
DESCRIPTION: | | ||
commitID: [${{github.sha}}](${{github.server_url}}/${{github.repository}}/commit/${{github.sha}}) | ||
URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}} | ||
LARK_WEBHOOK_URL: ${{secrets.LARK_WEBHOOK_URL}} | ||
|
||
failure_notification: | ||
name: Failure Notification | ||
needs: | ||
[test-linux, test-windows, test-mac, rust_check, rust_test, run_benchmark] | ||
[test-linux, test-windows, test-mac, rust_check, rust_test] | ||
if: ${{ failure() && !cancelled() && github.ref_name == 'main' && github.repository_owner == 'web-infra-dev' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
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
99f77c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Ecosystem CI detail: Open
99f77c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Benchmark detail: Open