Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements #344

Merged
merged 7 commits into from
Nov 23, 2024
Merged
18 changes: 17 additions & 1 deletion actions/plan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,27 @@ jobs:
id: plan
uses: tripss/nx-extend/actions/plan@improvements
with:
# Plan projects with the following targets
targets: |
test
build
e2e

# Available options
# <target>MaxJobs - Amount of max jobs for this target
# <target>Tag - Tag the targets project needs to have (Supports conditional)
# <target>PreTargets - Targets of the targeted project to run before running the target
# <target>postTargets - Targets of the targeted project to run after running the target
# <target>Parallel - Amount of projects it can run in parallel

# Run build target when project has tag "build=enabled" AND "service" tag is not "vercel" OR has tag "service=react"
targetBuildTag:
build=enabled,service!=vercel
service=react

testMaxJobs: 1
testTag: tests=enabled
testTag: |
tests=enabled

buildMaxJobs: 3
buildPreTargets: |
Expand Down Expand Up @@ -79,5 +93,7 @@ jobs:
index: ${{ matrix.index }}
count: ${{ matrix.count }}
tag: ${{ matrix.tag }}
parallel: ${{ matrix.parallel }}
preTargets: ${{ matrix.preTargets }}
postTargets: ${{ matrix.postTargets }}
```
Loading
Loading