mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Only run quick checks for changes to renovate.json (#203153)
## Summary Introduces a new `renovate` CI pipeline to only run quick checks for PRs which only adjust the `renovate.json` configuration file.
This commit is contained in:
parent
98fe2dcd3a
commit
591d640b1f
3 changed files with 34 additions and 0 deletions
20
.buildkite/pipelines/pull_request/renovate.yml
Normal file
20
.buildkite/pipelines/pull_request/renovate.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
steps:
|
||||
- command: .buildkite/scripts/lifecycle/pre_build.sh
|
||||
label: Pre-Build
|
||||
timeout_in_minutes: 10
|
||||
agents:
|
||||
machineType: n2-standard-2
|
||||
|
||||
- wait
|
||||
|
||||
- command: .buildkite/scripts/steps/renovate.sh
|
||||
label: 'Renovate validation'
|
||||
agents:
|
||||
machineType: n2-highcpu-8
|
||||
preemptible: true
|
||||
key: renovate_validation
|
||||
timeout_in_minutes: 60
|
||||
retry:
|
||||
automatic:
|
||||
- exit_status: '-1'
|
||||
limit: 3
|
|
@ -39,6 +39,14 @@ const getPipeline = (filename: string, removeSteps = true) => {
|
|||
return;
|
||||
}
|
||||
|
||||
const onlyRunQuickChecks = await areChangesSkippable([/^renovate\.json$/], REQUIRED_PATHS);
|
||||
if (onlyRunQuickChecks) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/renovate.yml', false));
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml'));
|
||||
console.log('Isolated changes to renovate.json. Skipping main PR pipeline.');
|
||||
return;
|
||||
}
|
||||
|
||||
pipeline.push(getAgentImageConfig({ returnYaml: true }));
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false));
|
||||
|
||||
|
|
6
.buildkite/scripts/steps/renovate.sh
Executable file
6
.buildkite/scripts/steps/renovate.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo '--- Renovate: validation'
|
||||
.buildkite/scripts/steps/checks/renovate.sh
|
Loading…
Add table
Add a link
Reference in a new issue