Skip to content

Commit fbd60fc

Browse files
authored
ci: Use pre-commit reusable workflow (#5772)
1 parent 61d628d commit fbd60fc

File tree

3 files changed

+14
-53
lines changed

3 files changed

+14
-53
lines changed

.github/workflows/check-format.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/on-pr.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,9 @@ jobs:
5050
files: |
5151
# These paths are unique to `on-pr.yml`.
5252
.github/scripts/levelization/**
53-
.github/workflows/check-format.yml
5453
.github/workflows/check-levelization.yml
5554
.github/workflows/notify-clio.yml
5655
.github/workflows/on-pr.yml
57-
.clang-format
58-
.pre-commit-config.yaml
5956
6057
# Keep the paths below in sync with those in `on-trigger.yml`.
6158
.github/actions/build-deps/**
@@ -93,11 +90,6 @@ jobs:
9390
outputs:
9491
go: ${{ steps.go.outputs.go == 'true' }}
9592

96-
check-format:
97-
needs: should-run
98-
if: needs.should-run.outputs.go == 'true'
99-
uses: ./.github/workflows/check-format.yml
100-
10193
check-levelization:
10294
needs: should-run
10395
if: needs.should-run.outputs.go == 'true'
@@ -130,7 +122,6 @@ jobs:
130122
if: failure() || cancelled()
131123
needs:
132124
- build-test
133-
- check-format
134125
- check-levelization
135126
runs-on: ubuntu-latest
136127
steps:

.github/workflows/pre-commit.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Run pre-commit hooks
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [develop, release, master]
7+
workflow_dispatch:
8+
9+
jobs:
10+
run-hooks:
11+
uses: XRPLF/actions/.github/workflows/pre-commit.yml@af1b0f0d764cda2e5435f5ac97b240d4bd4d95d3
12+
with:
13+
runs_on: ubuntu-latest
14+
container: '{ "image": "ghcr.io/xrplf/ci/tools-rippled-pre-commit" }'

0 commit comments

Comments
 (0)