https://github.com/andrebraghini/nx-affected-test
Test for @newl/nx issue #2170
https://github.com/andrebraghini/nx-affected-test
Last synced: 11 months ago
JSON representation
Test for @newl/nx issue #2170
- Host: GitHub
- URL: https://github.com/andrebraghini/nx-affected-test
- Owner: andrebraghini
- Created: 2020-02-25T18:34:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T01:20:14.000Z (over 2 years ago)
- Last Synced: 2025-02-25T03:26:31.637Z (over 1 year ago)
- Language: TypeScript
- Size: 346 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nx-affected-test
This is an example that simulates the case bwlow:
[nx affected:apps fails with error fatal: Not a valid object name master](https://github.com/nrwl/nx/issues/2170)
## Steps
1. This project was generated using [Nx](https://nx.dev) cli: `npx create-nx-workspace@latest myworkspace`
2. After that I created the [./.github/workflows/nodejs.yml](./.github/workflows/nodejs.yml#L24) file for Github Actions with the command `npm run affected:apps` that calls `nx affected:apps`.
3. Then I created a new branch `new-branch-example` and push to the server.
* The [master action](https://github.com/DedoxBR/nx-affected-test/runs/467941766?check_suite_focus=true) worked normally but the [branch action](https://github.com/DedoxBR/nx-affected-test/runs/467947195?check_suite_focus=true) doesn't.
* It fails with error: `fatal: Not a valid object name master`