add vale-linter +markdownlint #28
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Vale Linter Check | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| vale-quality-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # 1. Install Vale | |
| - name: Install Vale | |
| run: | | |
| wget https://github.com/errata-ai/vale/releases/download/v3.9.0/vale_3.9.0_Linux_64-bit.tar.gz | |
| tar -xvzf vale_3.9.0_Linux_64-bit.tar.gz | |
| sudo mv vale /usr/local/bin/ | |
| # 2. Install Markdownlint | |
| - name: Install Markdownlint | |
| run: sudo npm install -g markdownlint-cli | |
| # 3. Run the Build Script in "Lint Only" mode | |
| - name: Run Unified Doc Linter | |
| env: | |
| # Your work email (using %40 instead of @) | |
| BB_USERNAME: "nico.alba@netfoundry.io" | |
| # The secrets you added to the repo settings | |
| GH_ZITI_CI_REPO_ACCESS_PAT: ${{ secrets.GH_ZITI_CI_REPO_ACCESS_PAT }} | |
| BB_REPO_TOKEN_ONPREM: ${{ secrets.BB_REPO_TOKEN_ONPREM }} | |
| BB_REPO_TOKEN_FRONTDOOR: ${{ secrets.BB_REPO_TOKEN_FRONTDOOR }} | |
| run: | | |
| chmod +x unified-doc/build-docs.sh | |
| ./unified-doc/build-docs.sh --lint-only |