mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:54:58 +00:00
bfdab65791
Few CI improvements witch will reduce occupation CI queue and eliminate stale runs. 1. Kill CI jobs on PRs once PR branch gets a new push. This will prevent situation happened today - a huge job triggered twice in less than an hour and occupied all **org** (for all repositories) runners queue for the rest of the day (see pic). This completely blocked valkey-glide team. 2. Distribute nightly croned jobs on time to prevent them running together. Keep in mind, cron's TZ is UTC, so midnight tasks incur developers located in other timezones. This must be backported to all release branches (`valkey-x.y` and `x.y`) ![image](https://github.com/user-attachments/assets/923d8237-3cb7-42f5-80c8-5322b3f5187d) --------- Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
30 lines
668 B
YAML
30 lines
668 B
YAML
name: Reply-schemas linter
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'src/commands/*.json'
|
|
pull_request:
|
|
paths:
|
|
- 'src/commands/*.json'
|
|
|
|
concurrency:
|
|
group: reply-schemas-linter-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
reply-schemas-linter:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Setup nodejs
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
|
- name: Install packages
|
|
run: npm install ajv
|
|
- name: linter
|
|
run: node ./utils/reply_schema_linter.js
|
|
|