mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
46 lines
863 B
YAML
46 lines
863 B
YAML
![]() |
name: pre-commit
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- cluster
|
||
|
- master
|
||
|
paths:
|
||
|
- 'docs/**'
|
||
|
push:
|
||
|
branches:
|
||
|
- cluster
|
||
|
- master
|
||
|
paths:
|
||
|
- 'docs/**'
|
||
|
workflow_dispatch:
|
||
|
|
||
|
concurrency:
|
||
|
cancel-in-progress: true
|
||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||
|
|
||
|
jobs:
|
||
|
pre-commit:
|
||
|
name: Run pre-commit
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Check out Repository
|
||
|
uses: actions/checkout@v4
|
||
|
|
||
|
- name: Set up Python
|
||
|
uses: actions/setup-python@v5
|
||
|
with:
|
||
|
python-version: '3.12'
|
||
|
|
||
|
- uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: 18
|
||
|
|
||
|
- name: Install cspell
|
||
|
run: |
|
||
|
npm -g install cspell
|
||
|
make cspell-install
|
||
|
|
||
|
- name: Run pre-commit
|
||
|
uses: pre-commit/action@v3.0.1
|