1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2026-05-20 20:32:14 +00:00

CI: Improve prettier-markdown job, showing the required changes in case of failure.

Adapt markdown file to the new prettier behavior
This commit is contained in:
Carles Fernandez
2025-07-10 21:34:08 +02:00
parent ebd6450dea
commit 49fd39d2b6
2 changed files with 10 additions and 7 deletions
+10 -4
View File
@@ -191,10 +191,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: sudo npm install --global prettier
- name: check markdown
run: find . -iname "*.md" | xargs prettier --parser markdown --print-width 80 --prose-wrap always --list-different
- name: Set up latest Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install prettier
run: npm install --global prettier
- name: Process markdown files
run: prettier --parser markdown --print-width 80 --prose-wrap always --write "**/*.md"
- name: Show required fixes
run: git diff --exit-code
cmakelint:
runs-on: ubuntu-latest