e-square-io / nx-github-actions

A set of Github Actions for NX workspaces
MIT License
30 stars 6 forks source link

fix(utils): set workingDirectory to NX_WORKSPACE_ROOT_PATH env var #59

Closed ronnetzer closed 1 year ago

ronnetzer commented 2 years ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

workingDirectory input is not affecting NX

Issue Number: fixes #56

What is the new behavior?

NX_WORKSPACE_ROOT_PATH env variable will be set with the input's value

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

nx-cloud[bot] commented 2 years ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 61d3a12f6a6c95df7c477084c8e3390023c81a87. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 4 targets - [`nx run-many --projects=nx-affected-matrix,nx-distributed-task --skip-nx-cache=false --target=build --parallel=3 --with-deps`](https://cloud.nx.app/runs/pbCdyid4Bxi) - [`nx run-many --projects=nx-affected-matrix,nx-distributed-task --skip-nx-cache=false --target=test --parallel=3 --with-deps=false`](https://cloud.nx.app/runs/qN0IymjpJcb) - [`nx run-many --projects=nx-distributed-task,nx-affected-matrix --skip-nx-cache=false --target=build --parallel=3 --scan --with-deps`](https://cloud.nx.app/runs/jotNhtNsMMM) - [`nx run-many --projects=utils,nx-distributed-task,nx-affected-matrix --skip-nx-cache=false --target=test --parallel=3 --scan --with-deps=false`](https://cloud.nx.app/runs/6CtgtrzBanc)

Sent with 💌 from NxCloud.

codecov[bot] commented 2 years ago

Codecov Report

Merging #59 (61d3a12) into main (cbbf3e8) will decrease coverage by 0.23%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
- Coverage   87.92%   87.69%   -0.24%     
==========================================
  Files          15       15              
  Lines         381      382       +1     
  Branches       55       55              
==========================================
  Hits          335      335              
- Misses         43       44       +1     
  Partials        3        3              
Flag Coverage Δ
nx-affected-matrix 95.91% <ø> (ø)
nx-distributed-task 100.00% <ø> (ø)
utils 80.34% <0.00%> (-0.36%) :arrow_down:
Impacted Files Coverage Δ
packages/utils/src/lib/inputs.ts 57.37% <0.00%> (-0.96%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.