Repository navigation
harness: a table of roles and an 8 KB memory index #10
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
| # | |
| # SPDX-FileCopyrightText: (c) 2026 Ring Zero Desenvolvimento de Software LTDA | |
| # SPDX-License-Identifier: MIT OR GPL-2.0-only | |
| # | |
| name: Checks | |
| on: | |
| pull_request: | |
| jobs: | |
| checks: | |
| name: Convention checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # the shared checks run from the harness's submodule | |
| submodules: true | |
| - name: Install dependencies | |
| run: | | |
| bash harness/tools/retry.sh 5 90 sudo apt-get install -yq gawk | |
| # luals.sh reads the Lua files a pull request touches with lua-language-server, which no package carries | |
| bash harness/tools/retry.sh 5 90 curl -fsSL https://github.com/LuaLS/lua-language-server/releases/download/3.19.1/lua-language-server-3.19.1-linux-x64.tar.gz -o /tmp/luals.tar.gz | |
| sudo mkdir -p /opt/lua-language-server && sudo tar -xzf /tmp/luals.tar.gz -C /opt/lua-language-server | |
| sudo ln -s /opt/lua-language-server/bin/lua-language-server /usr/local/bin/lua-language-server | |
| - name: Stage the pull request's diff | |
| # pre-commit reads the index, so the diff against the base is staged as a commit would be | |
| run: git reset -q --soft "origin/${{ github.base_ref }}" | |
| - name: Machine paths and credentials | |
| run: CHECK_STAGED=1 bash harness/tools/checks/machine-leak.sh $(git diff --cached --name-only --diff-filter=ACM) | |
| - name: Trailing blank line | |
| run: bash harness/tools/checks/pre-commit | |
| - name: Fixups pending | |
| # a fixup! waits for the squash, and each round of a review pushes one, so the run warns of it and stays green | |
| run: | | |
| bash harness/tools/checks/fixups.sh "origin/${{ github.base_ref }}..${{ github.event.pull_request.head.sha }}" || | |
| echo "::warning title=Fixups pending::fold the fixup!, amend! and squash! commits before the merge" | |
| - name: Advisory checks | |
| # heuristics that nudge a review; they annotate the run and do not fail it | |
| run: bash harness/tools/checks/advisory.sh --github "origin/${{ github.base_ref }}" "${{ github.event.pull_request.head.sha }}" |