Internal agent bug fixes 1 #706
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: Code Formatting | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| # Workaround for some `yarn` nonsense, see: | |
| # https://github.com/yarnpkg/yarn/issues/6312#issuecomment-429685210 | |
| - name: Install Dependencies | |
| run: yarn install --network-concurrency 1 | |
| - name: Run Linter Checks | |
| run: | | |
| yarn fmt | |
| if ! git diff-index --quiet HEAD; then | |
| echo "::error::Formatting issues detected. Please run 'yarn fmt' locally and commit the changes." | |
| git diff --stat | |
| git diff | |
| exit 1 | |
| fi |