Skip to content

[Karate Tools] exec-maven-plugin:3.5.0 Mac jansi issue #40

[Karate Tools] exec-maven-plugin:3.5.0 Mac jansi issue

[Karate Tools] exec-maven-plugin:3.5.0 Mac jansi issue #40

Workflow file for this run

---
name: docs-verify
on:
pull_request:
types: [synchronize, labeled, closed]
paths:
- 'docs/**'
- '.github/workflows/docs-*'
jobs:
unit-tests:
name: Docs / Verify
runs-on: ubuntu-24.04
steps:
- name: Checkout merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: NPM / Setup Dependencies Cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup asdf Cache
id: asdf-cache
uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.asdf/data
key: ${{ runner.os }}-asdf-${{ hashFiles('**/.tool-versions') }}
restore-keys: |
${{ runner.os }}-asdf-
- name: Save tool-versions content
run: |
{
echo "TOOL_VERSIONS<<EOF"
cat docs/.tool-versions
echo "EOF"
} >> "$GITHUB_ENV"
- name: Node / Setup asdf environment
uses: asdf-vm/actions/install@v3
# https://github.com/asdf-vm/actions/issues/356
if: steps.asdf-cache.outputs.cache-hit != 'true'
with:
tool_versions: ${{ env.TOOL_VERSIONS }}
- name: Configure Git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCM_COMMITTER_PGP_KEY: ${{ secrets.CI_GPG_SECRET_KEY }}
run: |
git config --global credential.helper store
cat <<EOT >> ~/.git-credentials
https://ci-user:[email protected]
EOT
echo "$SCM_COMMITTER_PGP_KEY" | gpg --batch --import
git config user.name "InditexTech CI"
git config user.email "[email protected]"
- name: Docker / Execute Kroki server
run: |
docker run \
-p 8000:8000 \
--name krokiserver \
--health-cmd="curl -s --fail http://localhost:8000/health || exit 1" \
--health-interval=2s \
--health-retries=5 \
--health-timeout=1s \
-d yuzutech/kroki
max_attempts=5
attempt=1
backoff=2
while ! docker inspect --format='{{json .State.Health.Status}}' krokiserver | grep -q "healthy"; do
echo "Kroki server is not ready yet. Waiting for $backoff seconds..."
sleep $backoff
attempt=$((attempt + 1))
if [ $attempt -gt $max_attempts ]; then
echo "Kroki server failed to start after $max_attempts attempts. Exiting..."
exit 1
fi
done
- name: NPM / Verify
working-directory: docs
run: |
npm run verify