You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Github Action that runs nx `run-many` for the specified target and projects.
11
12
This action was designed to consume the outputs of [@e-square/nx-affected-matrix](https://github.com/marketplace/actions/nx-affected-task) in order to distribute jobs with ease.
12
13
@@ -15,16 +16,17 @@ Check out the monorepo's [README](https://github.com/e-square-io/nx-github-actio
15
16
## Usage
16
17
17
18
### Inputs
18
-
| name | description | default | required |
19
-
|:-------|:-------|:-------:|:-------:|
20
-
| target | Target to run | - |✓|
21
-
| projects | Comma-delimited list of projects to run against target | - |✓|
22
-
| distribution | Current distribution run, required when running in a matrix | - |✗|
| workingDirectory | Path to the Nx workspace, needed if not the repository root | - |✗|
29
+
| args | Space-delimited args to add to nx command execution | - |✗|
28
30
29
31
```yaml
30
32
jobs:
@@ -34,17 +36,18 @@ jobs:
34
36
steps:
35
37
- name: Checkout
36
38
uses: actions/checkout@v2
37
-
39
+
38
40
# install node modules, cache etc
39
41
40
42
- name: Run command
41
-
uses: e-square-io/nx-distributed-task@v2
43
+
uses: e-square-io/nx-distributed-task-lib@v2
42
44
with:
43
45
target: 'test'
44
46
projects: 'project1,project2'
45
47
```
46
48
47
49
### Uploading outputs
50
+
48
51
In Github, when uploading multiple artifact under the same name, Github will keep adding the artifacts instead of overwriting them.
49
52
This behavior allows us to upload all the outputs from all the distributed jobs under one "directory" so that in later jobs you can download that single "directory" and get all the outputs for that target.
50
53
The name of the artifact will be the name of the target.
0 commit comments