From ccf37a114b3f8bd35dbb9a3c9e3ea6ecea0d2b44 Mon Sep 17 00:00:00 2001 From: Noah Brier Date: Wed, 17 Sep 2025 15:38:09 -0400 Subject: [PATCH] feat: add GitHub Action for lint checks on PRs --- .github/workflows/lint.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..203d786 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,36 @@ +name: Lint + +on: + pull_request: + branches: [main] + push: + branches: [main] + +jobs: + lint: + name: Run Lint Checks + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'pnpm' + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + + - name: Run ESLint + run: pnpm eslint --config .config/eslint.config.js . + + - name: Run Prettier Check + run: pnpm prettier --config .config/.prettierrc.js --check .