Skip to content

Commit

Permalink
Improve PR builder workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaShakthi97 committed Aug 16, 2024
1 parent dc0d9fe commit 319e6cb
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,13 @@ jobs:
- name: ⬇️ Checkout
id: checkout
uses: actions/checkout@v2.3.3
with:
fetch-depth: 0

- name: 🟢 Setup node
id: setup-node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: 🐳 Set SHAs for Nx
id: set-shas
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: "master"

- name: 🥡 Setup pnpm
id: setup-pnpm
uses: pnpm/action-setup@v2.1.0
Expand Down Expand Up @@ -91,11 +83,18 @@ jobs:
node-version: [ lts/* ]
pnpm-version: [ 8.7.4 ]
steps:
- name: ⬇️ Checkout
id: checkout-master
uses: actions/checkout@v2.3.3
with:
fetch-depth: 1
ref: master

- name: ⬇️ Checkout
id: checkout
uses: actions/checkout@v2.3.3
with:
fetch-depth: 0
fetch-depth: 1

- name: 🟢 Setup node
id: setup-node
Expand Down Expand Up @@ -138,7 +137,7 @@ jobs:
run: pnpm build:modules

- name: ☄️ Check Type Errors
run: pnpm nx affected --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} --target=typecheck --parallel=3
run: pnpm nx affected --base=origin/master --head=${{ env.NX_HEAD }} --target=typecheck --parallel=3

test:
name: 👾 Unit Test (TESTING)
Expand Down Expand Up @@ -236,12 +235,12 @@ jobs:
java-version: [ 11 ]
pnpm-version: [ 8.7.4 ]
steps:
# - name: ⬇️ Checkout
# id: checkout-master
# uses: actions/checkout@v2.3.3
# with:
# fetch-depth: 1
# ref: master
- name: ⬇️ Checkout
id: checkout-master
uses: actions/checkout@v2.3.3
with:
fetch-depth: 1
ref: master

- name: ⬇️ Checkout
id: checkout
Expand Down

0 comments on commit 319e6cb

Please sign in to comment.