forked from TrueCloudLab/xk6-frostfs
[#164] .forgejo: Add clang-format support
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
fe90707913
commit
fad5d9b16c
1 changed files with 21 additions and 0 deletions
|
@ -20,6 +20,27 @@ jobs:
|
||||||
- name: Run linters
|
- name: Run linters
|
||||||
run: make lint
|
run: make lint
|
||||||
|
|
||||||
|
check-format:
|
||||||
|
name: Check format
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
run: |
|
||||||
|
apt update
|
||||||
|
apt install -y clang-format
|
||||||
|
|
||||||
|
- name: Run clang-format
|
||||||
|
run: clang-format -i **/*.js
|
||||||
|
|
||||||
|
- name: Print diff
|
||||||
|
run: git diff HEAD
|
||||||
|
|
||||||
|
- name: Check that nothing has changed
|
||||||
|
run: git diff-index --exit-code HEAD
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue