Skip to content

Commit 99f77c8

Browse files
authored
ci: enable ecosystem-ci on main branch (#8932)
1 parent 77e6c4a commit 99f77c8

3 files changed

Lines changed: 9 additions & 164 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -359,63 +359,10 @@ jobs:
359359
# reason for excluding https://github.com/napi-rs/napi-rs/issues/2200
360360
run: cargo miri test --workspace --exclude rspack_node -- --nocapture
361361

362-
run_benchmark:
363-
name: Run benchmark
364-
runs-on: ubuntu-latest
365-
# TODO: enable it after security tokens are added
366-
# if: github.ref_name == 'main' && github.repository_owner == 'web-infra-dev'
367-
if: false
368-
steps:
369-
- name: Run Benchmark
370-
uses: convictional/[email protected]
371-
with:
372-
owner: ${{ github.repository_owner }}
373-
repo: "rspack-ecosystem-benchmark"
374-
workflow_file_name: "bench_rspack_commit.yml"
375-
github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }}
376-
ref: "main"
377-
client_payload: '{"commit_sha":"${{ github.sha }}"}'
378-
379-
run_ecosystem_ci:
380-
name: Run Ecosystem CI
381-
runs-on: ubuntu-latest
382-
# TODO: enable it after security tokens are added
383-
# if: github.ref_name == 'main' && github.repository_owner == 'web-infra-dev'
384-
if: false
385-
steps:
386-
- name: Run Ecosystem CI
387-
id: eco_ci
388-
continue-on-error: true
389-
uses: convictional/[email protected]
390-
with:
391-
owner: "rspack-contrib"
392-
repo: "rspack-ecosystem-ci"
393-
workflow_file_name: "ecosystem-ci-from-commit.yml"
394-
github_token: ${{ secrets.RSPACK_ACCESS_TOKEN }}
395-
ref: "main"
396-
client_payload: '{"commitSHA":"${{ github.sha }}","repo":"web-infra-dev/rspack","suite":"-","suiteRefType":"precoded","suiteRef":"precoded"}'
397-
398-
- if: steps.eco_ci.outcome == 'failure'
399-
uses: actions/checkout@v4
400-
- if: steps.eco_ci.outcome == 'failure'
401-
uses: actions/setup-node@v4
402-
with:
403-
node-version: 20
404-
- name: Send Failure Notification
405-
if: steps.eco_ci.outcome == 'failure'
406-
shell: bash
407-
run: ./scripts/alert/lark.js
408-
env:
409-
TITLE: Ecosystem CI failed on main branch
410-
DESCRIPTION: |
411-
commitID: [${{github.sha}}](${{github.server_url}}/${{github.repository}}/commit/${{github.sha}})
412-
URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
413-
LARK_WEBHOOK_URL: ${{secrets.LARK_WEBHOOK_URL}}
414-
415362
failure_notification:
416363
name: Failure Notification
417364
needs:
418-
[test-linux, test-windows, test-mac, rust_check, rust_test, run_benchmark]
365+
[test-linux, test-windows, test-mac, rust_check, rust_test]
419366
if: ${{ failure() && !cancelled() && github.ref_name == 'main' && github.repository_owner == 'web-infra-dev' }}
420367
runs-on: ubuntu-latest
421368
steps:

.github/workflows/ecosystem-ci-trigger.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/ecosystem-ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ on:
2525
required: true
2626
type: string
2727
default: "-"
28-
# push:
29-
# branches:
30-
# - main
31-
# paths-ignore:
32-
# - "**/*.md"
33-
# - "website/**"
34-
# tags-ignore:
35-
# - "**"
28+
push:
29+
branches:
30+
- main
31+
paths-ignore:
32+
- "**/*.md"
33+
- "website/**"
34+
tags-ignore:
35+
- "**"
3636

3737
jobs:
3838
get-runner-labels:

0 commit comments

Comments
 (0)