From d0dfb8675688d8bcfd2f8465c6548927ff4fa314 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Fri, 8 Aug 2025 13:23:42 -0700 Subject: [PATCH] improv: checks --- .github/workflows/pr_checks.yml | 44 ++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index 845b6528e..700498b82 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -10,6 +10,42 @@ permissions: issues: write jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Run linting + run: npm run lint + + format-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Check code formatting + run: npm run format:check + test: strategy: matrix: @@ -43,12 +79,6 @@ jobs: shell: bash run: npm test -- --exclude='**/*.e2e.*' --exclude='**/e2e/**' - - name: Run linting - run: npm run lint - - - name: Check code formatting - run: npm run format:check - review: uses: ./.github/workflows/continue-review.yaml secrets: @@ -68,6 +98,8 @@ jobs: if: always() runs-on: ubuntu-latest needs: + - lint + - format-check - test steps: