Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 7 additions & 41 deletions .github/workflows/quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
- name: Run DocsOps Quality Gate (local action)
uses: ./action
with:
python-version: "3.11"
min_score: "85"

- name: Install docsops CLI
run: pip install -e .

- name: Setup Node (for markdownlint)
uses: actions/setup-node@v4
- name: Upload reports
uses: actions/upload-artifact@v4
with:
node-version: "20"

- name: Prepare reports folder
run: mkdir -p reports

- name: markdownlint (JSON)
continue-on-error: true
run: |
npm i -g markdownlint-cli2
markdownlint-cli2 "**/*.md" "#node_modules" --json > reports/markdownlint.json

- name: lychee link check (JSON)
continue-on-error: true
run: |
LYCH_VER="0.15.1"
curl -sSfL "https://github.com/lycheeverse/lychee/releases/download/v${LYCH_VER}/lychee-v${LYCH_VER}-x86_64-unknown-linux-gnu.tar.gz" | tar -xz
./lychee --config configs/lychee.toml --format json "**/*.md" > reports/lychee.json

- name: Vale (JSON)
continue-on-error: true
run: |
VALE_VER="3.7.1"
curl -sSfL "https://github.com/errata-ai/vale/releases/download/v${VALE_VER}/vale_${VALE_VER}_Linux_64-bit.tar.gz" | tar -xz
./vale --config configs/vale/.vale.ini --output=JSON . > reports/vale.json

- name: Score summary
run: |
docsops report > reports/summary.md
cat reports/summary.md >> "$GITHUB_STEP_SUMMARY"
docsops score > reports/score.json

- name: Enforce minimum score
run: docsops check --min-score 85
name: docsops-reports
path: reports/
Loading