mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-18 02:35:51 +00:00
ci: run pre-commit workflow on heavy runner to make doxygen work (#2085)
This commit is contained in:
18
.github/workflows/pre-commit.yml
vendored
18
.github/workflows/pre-commit.yml
vendored
@@ -9,18 +9,20 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-hooks:
|
run-hooks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: heavy
|
||||||
|
container:
|
||||||
|
image: ghcr.io/xrplf/clio-ci:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo ⚡️
|
- name: Checkout Repo ⚡️
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set Up Python 🐍
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
fetch-depth: 0
|
||||||
- name: Install pre-commit 📦
|
|
||||||
run: |
|
- name: Prepare runner
|
||||||
pip install --upgrade pip
|
uses: ./.github/actions/prepare_runner
|
||||||
pip install --upgrade pre-commit
|
with:
|
||||||
|
disable_ccache: true
|
||||||
|
|
||||||
- name: Run pre-commit ✅
|
- name: Run pre-commit ✅
|
||||||
run: pre-commit run --all-files
|
run: pre-commit run --all-files
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ DOCDIR=${TMPDIR}/out
|
|||||||
|
|
||||||
# Check doxygen is at all installed
|
# Check doxygen is at all installed
|
||||||
if [ -z "$DOXYGEN" ]; then
|
if [ -z "$DOXYGEN" ]; then
|
||||||
|
if [[ "${CI}" == "true" ]]; then
|
||||||
|
# If we are in CI, we should fail the check
|
||||||
|
echo "doxygen not found in CI, please install it"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# No hard error if doxygen is not installed yet
|
# No hard error if doxygen is not installed yet
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user