diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3131ab968e63..3928ae2aa3bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -240,7 +240,24 @@ jobs: # Added the - at the end to function as a separator to improve readability in the PR comment from the Nx cloud app NX_CLOUD_ENV_NAME: 'Node ${{ matrix.node-version }} -' steps: + - name: Populate base SHA in local history + uses: actions/checkout@v3 + with: + fetch-depth: 1 + ref: ${{ github.event.pull_request.base.sha }} + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - name: Print debug Git info + run: | + git remote -v + git log + + - name: Pull commits after base SHA + run: git log ${{ github.event.pull_request.base.sha }}.. --pretty="%H" | xargs -n1 git pull origin + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -299,7 +316,7 @@ jobs: CI: true - name: Run unit tests for eslint-plugin - run: npx nx test @typescript-eslint/eslint-plugin + run: npx nx test @typescript-eslint/eslint-plugin --changedSince=${{ github.event.pull_request.base.sha }} env: CI: true diff --git a/packages/eslint-plugin/tests/rules/unified-signatures.test.ts b/packages/eslint-plugin/tests/rules/unified-signatures.test.ts index ea259aea4325..746d6259c79e 100644 --- a/packages/eslint-plugin/tests/rules/unified-signatures.test.ts +++ b/packages/eslint-plugin/tests/rules/unified-signatures.test.ts @@ -1,10 +1,6 @@ import rule from '../../src/rules/unified-signatures'; import { RuleTester } from '../RuleTester'; -//------------------------------------------------------------------------------ -// Tests -//------------------------------------------------------------------------------ - const ruleTester = new RuleTester({ parser: '@typescript-eslint/parser' }); ruleTester.run('unified-signatures', rule, {