Skip to content

Release/0.2.0 (#32) #18

Release/0.2.0 (#32)

Release/0.2.0 (#32) #18

Workflow file for this run

name: Documentation Quality Check
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
# Allow manual triggering
workflow_dispatch:
jobs:
vale-linting:
name: Vale Documentation Linting
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install and run Vale
run: |
wget -O vale.tar.gz https://github.com/errata-ai/vale/releases/download/v3.12.0/vale_3.12.0_Linux_64-bit.tar.gz
tar -xzf vale.tar.gz
sudo mv vale /usr/local/bin/
vale sync
vale --output=line *.adoc specs/tests/*.adoc || echo "Vale lint finished with suggestions"
documentation-tests:
name: Documentation Build Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Install Vale
run: |
wget -O vale.tar.gz https://github.com/errata-ai/vale/releases/download/v3.12.0/vale_3.12.0_Linux_64-bit.tar.gz
tar -xzf vale.tar.gz
sudo mv vale /usr/local/bin/
vale --version
- name: Setup Vale styles
run: |
vale sync
- name: Run documentation quality checks
run: |
bundle exec rake quality
- name: Test documentation examples
run: |
# Test any code examples in documentation
if [ -d "lib/examples" ]; then
echo "Testing documentation examples..."
for file in lib/examples/*.yml; do
if [ -f "$file" ]; then
echo "Validating $file"
ruby -e "require 'yaml'; YAML.load_file('$file')" || exit 1
fi
done
fi