Improve Cloud Build module for parallel builds and multi-stage Docker caching #76
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: mdlint | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| mdlint: | |
| name: mdlint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| with: | |
| fetch-depth: '0' | |
| - name: Install Go | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5 | |
| - name: Install shfmt | |
| run: go install mvdan.cc/sh/v3/cmd/shfmt@latest | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| - name: install dependencies | |
| run: | | |
| pip install --user mdformat mdformat-gfm mdformat-shfmt mdformat-tables mdformat-toc | |
| # linkify-it-py needed rust so I skipped it | |
| - name: markdown | |
| run: | | |
| export PATH="/root/.local/bin:$PATH" | |
| find . -type d -name node_modules -prune -o -name '*.md' -type f -print0 | xargs -0 -n1 -P4 mdformat --check --wrap keep --number | |
| - name: Provide Help | |
| if: '!cancelled()' | |
| run: 'echo "For lint failures run the lintfix action or manually run ./.github/lintfix-fmt-md.sh"' |