[ESLint] Merge pull request #1496 from stellarwp/fix/color-control-spacing [DTM] Give the editor's color controls the same bottom spacing as their neighbors #6391
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: ESLint | |
| run-name: '[ESLint] ${{ github.event.head_commit.message }}' | |
| on: | |
| push: | |
| # pull_request: | |
| jobs: | |
| run-linters: | |
| name: Run linters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun- | |
| # ESLint and Prettier must be in `package.json`. | |
| # `bun install` runs the root postinstall, which builds the @kadence/* source | |
| # packages so ESLint can resolve their imports (bun blocks their own prepare | |
| # scripts; npm does not). | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| env: | |
| BUN_AUTH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} | |
| - name: Run linters | |
| uses: wearerequired/lint-action@v2 | |
| with: | |
| # The bot's token rather than the default one, so auto-fix commits are attributed to it | |
| # and still trigger the workflows that a commit pushed by the default token would not. | |
| github_token: ${{ secrets.GH_BOT_TOKEN }} | |
| auto_fix: true | |
| eslint: true |