Skip to content

Commit

Permalink
test workflow: fetch all branches
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Alvarez <[email protected]>
  • Loading branch information
jonalvarezz committed Dec 27, 2023
1 parent 6b0e621 commit 7ae1986
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
fetch-depth: 0

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'main'

- name: Install pnpm
uses: pnpm/[email protected]
Expand All @@ -18,11 +26,6 @@ jobs:
version: 7
run_install: true

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'main'

- name: Run tests
run: |
pnpm test

0 comments on commit 7ae1986

Please sign in to comment.