diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index b8983d4f..41e0a9cf 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -58,5 +58,9 @@ jobs: steps: - name: NX Affected uses: nrwl/nx-set-shas@v4 + + - name: Checkout Main + run: git branch --track main origin/main + - name: Build, Lint, Test run: npx nx affected -t build,lint,test --parallel=3 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d8b225f7..17a8183b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -59,6 +59,10 @@ jobs: steps: - name: NX Affected uses: nrwl/nx-set-shas@v4 + + - name: Checkout Main + run: git branch --track main origin/main + - name: Build, Lint, Test run: npx nx affected -t build,lint,test --parallel=3