Skip to content

Commit

Permalink
ci: add missing nrwl/nx-set-shas step in CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tinesoft committed Jun 22, 2024
1 parent 3bba12a commit 8f1788e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ inputs:
runs:
using: 'composite'
steps:
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4

- name: Setup PNPM
run: corepack enable pnpm
shell: bash
Expand Down Expand Up @@ -53,3 +50,6 @@ runs:
- name: Install packages
run: pnpm install --frozen-lockfile
shell: bash

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
fetch-depth: 0

- name: Install node, pnpm, and dependencies
Expand All @@ -39,5 +40,8 @@ jobs:
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track develop origin/develop || exit 0

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4

- run: pnpm exec nx-cloud record -- nx format:check
- run: pnpm exec nx affected -t lint test build e2e --exclude=smoke --codeCoverage

0 comments on commit 8f1788e

Please sign in to comment.