Skip to content

Commit 1519397

Browse files
chore(ci): Make update seed work like seed tests (#9956)
* Make update seed work like seed tests
1 parent 47c8585 commit 1519397

File tree

3 files changed

+185
-346
lines changed

3 files changed

+185
-346
lines changed

.github/actions/auto-update-seed/action.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ inputs:
1515
required: false
1616
default: "false"
1717
fixtures-to-run:
18-
description: Specific fixtures to run. If not supplied, will run all fixtures. Note - for multiple fixtures at once, separate by space, not comma.
19-
required: false
20-
default: ""
18+
description: The fixtures to run, as JSON
19+
required: true
2120
allow-unexpected-failures:
2221
description: Whether to allow unexpected failures during seed generation
2322
required: false
@@ -34,15 +33,16 @@ inputs:
3433
runs:
3534
using: "composite"
3635
steps:
37-
- name: Run seed
38-
uses: ./.github/actions/cached-seed
36+
- name: Run All Seed Tests
37+
uses: ./.github/actions/run-seed-process
3938
with:
40-
generator-name: ${{ inputs.generator-name }}
39+
sdk-name: ${{ inputs.generator-name }}
4140
generator-path: ${{ inputs.generator-path }}
4241
fixtures-to-run: ${{ inputs.fixtures-to-run }}
42+
job-index: ${{ strategy.job-index }}
43+
collect-metrics: false
4344
allow-unexpected-failures: ${{ inputs.allow-unexpected-failures }}
4445
skip-scripts: ${{ inputs.skip-scripts }}
45-
cache-disabled: ${{ inputs.cache-disabled }}
4646

4747
# Add changes first to simplify git diff checks, no changes will NOT error here
4848
- name: Check for changes

.github/actions/run-seed-process/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
fixtures-to-run:
1212
description: The fixtures to run, as JSON
1313
required: true
14+
skip-scripts:
15+
description: Whether to skip running scripts during seed generation
16+
required: false
17+
default: "false"
1418
job-index:
1519
description: The index of the job (when parallelized in a matrix strategy)
1620
required: true
@@ -61,6 +65,7 @@ runs:
6165
generator-name: ${{ inputs.sdk-name }}
6266
generator-path: ${{ inputs.generator-path }}
6367
fixtures-to-run: ${{ steps.json-to-string.outputs.as-string }}
68+
skip-scripts: ${{ inputs.skip-scripts }}
6469

6570
- name: Handle Seed Leftover Tests
6671
if: ${{ steps.json-to-string.outputs.as-string == 'leftovers' }}

0 commit comments

Comments
 (0)