mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55: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:
|
||||
run-hooks:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: heavy
|
||||
container:
|
||||
image: ghcr.io/xrplf/clio-ci:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repo ⚡️
|
||||
uses: actions/checkout@v4
|
||||
- name: Set Up Python 🐍
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: Install pre-commit 📦
|
||||
run: |
|
||||
pip install --upgrade pip
|
||||
pip install --upgrade pre-commit
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prepare runner
|
||||
uses: ./.github/actions/prepare_runner
|
||||
with:
|
||||
disable_ccache: true
|
||||
|
||||
- name: Run pre-commit ✅
|
||||
run: pre-commit run --all-files
|
||||
|
||||
@@ -15,6 +15,12 @@ DOCDIR=${TMPDIR}/out
|
||||
|
||||
# Check doxygen is at all installed
|
||||
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
|
||||
cat <<EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user