mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 00:29:09 -05:00
chore(ci): skip running the benchmarks on a PR except when a label is added (#17377)
This commit is contained in:
parent
09c183f4a0
commit
918a19d8f2
3 changed files with 6 additions and 2 deletions
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
@ -20,4 +20,5 @@ Before submitting a PR, please read http://deno.land/manual/contributing
|
||||||
6. Ensure `./tools/lint.js` passes.
|
6. Ensure `./tools/lint.js` passes.
|
||||||
7. Open as a draft PR if your work is still in progress. The CI won't run
|
7. Open as a draft PR if your work is still in progress. The CI won't run
|
||||||
all steps, but you can add '[ci]' to a commit message to force it to.
|
all steps, but you can add '[ci]' to a commit message to force it to.
|
||||||
|
8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label.
|
||||||
-->
|
-->
|
||||||
|
|
4
.github/workflows/ci.generate.ts
vendored
4
.github/workflows/ci.generate.ts
vendored
|
@ -192,7 +192,7 @@ const ci = {
|
||||||
},
|
},
|
||||||
concurrency: {
|
concurrency: {
|
||||||
group:
|
group:
|
||||||
"${{ github.workflow }}-${{ !contains(github.event.pull_request.labels.*.name, 'test-flaky-ci') && github.head_ref || github.run_id }}",
|
"${{ github.workflow }}-${{ !contains(github.event.pull_request.labels.*.name, 'ci-test-flaky') && github.head_ref || github.run_id }}",
|
||||||
"cancel-in-progress": true,
|
"cancel-in-progress": true,
|
||||||
},
|
},
|
||||||
jobs: {
|
jobs: {
|
||||||
|
@ -243,6 +243,8 @@ const ci = {
|
||||||
job: "bench",
|
job: "bench",
|
||||||
profile: "release",
|
profile: "release",
|
||||||
use_sysroot: true,
|
use_sysroot: true,
|
||||||
|
skip_pr:
|
||||||
|
"${{ !contains(github.event.pull_request.labels.*.name, 'ci-bench') }}",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
os: Runners.linux,
|
os: Runners.linux,
|
||||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -14,7 +14,7 @@ on:
|
||||||
- synchronize
|
- synchronize
|
||||||
- ready_for_review
|
- ready_for_review
|
||||||
concurrency:
|
concurrency:
|
||||||
group: '${{ github.workflow }}-${{ !contains(github.event.pull_request.labels.*.name, ''test-flaky-ci'') && github.head_ref || github.run_id }}'
|
group: '${{ github.workflow }}-${{ !contains(github.event.pull_request.labels.*.name, ''ci-test-flaky'') && github.head_ref || github.run_id }}'
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -50,6 +50,7 @@ jobs:
|
||||||
job: bench
|
job: bench
|
||||||
profile: release
|
profile: release
|
||||||
use_sysroot: true
|
use_sysroot: true
|
||||||
|
skip_pr: '${{ !contains(github.event.pull_request.labels.*.name, ''ci-bench'') }}'
|
||||||
- os: '${{ github.repository == ''denoland/deno'' && ''ubuntu-20.04-xl'' || ''ubuntu-20.04'' }}'
|
- os: '${{ github.repository == ''denoland/deno'' && ''ubuntu-20.04-xl'' || ''ubuntu-20.04'' }}'
|
||||||
job: test
|
job: test
|
||||||
profile: debug
|
profile: debug
|
||||||
|
|
Loading…
Reference in a new issue