Skip to content

Commit e60e381

Browse files
committed
Retrieve OFT file patterns from GitHub repository variable
1 parent f4109d1 commit e60e381

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/check-up-spec-compatibility.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
# *******************************************************************************/
1313

1414
# Verifies that this crate can be built using the uProtocol Core API from up-spec's main branch.
15-
# Also performs requirements tracing using OpenFastTrace
15+
# Also performs requirements tracing using OpenFastTrace. For that purpose, the workflow requires
16+
# the UP_SPEC_OPEN_FAST_TRACE_FILE_PATTERNS variable to contain the file patterns to use for
17+
# invoking the "run-oft" Action.
1618

1719
name: uP Spec Compatibility
1820

@@ -52,7 +54,7 @@ jobs:
5254
- name: Run OpenFastTrace
5355
uses: ./.github/actions/run-oft
5456
with:
55-
file-patterns: 'up-spec/*.adoc up-spec/*.md up-spec/basics up-spec/up-l2/api.adoc *.adoc *.md *.rs .github examples src tests tools'
57+
file-patterns: ${{ vars.UP_SPEC_OPEN_FAST_TRACE_FILE_PATTERNS }}
5658

5759
# now try to build and run the tests which may fail if incomaptible changes
5860
# have been introduced in up-spec

.github/workflows/nightly.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ jobs:
5353

5454
coverage:
5555
uses: ./.github/workflows/coverage.yaml
56+
57+
requirements-tracing:
58+
uses: ./.github/workflows/requirements-tracing.yaml
59+
with:
60+
oft-file-patterns: ${{ vars.UP_SPEC_OPEN_FAST_TRACE_FILE_PATTERNS }}

.github/workflows/requirements-tracing.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ on:
3535
A whitespace separated list of glob patterns which specify the files to include in the OFT trace run.
3636
If not specified, defaults to all files relevant for checking up-rust against the uProtocol Specification.
3737
type: string
38-
pull_request:
3938

4039
jobs:
4140
tracing:
@@ -52,7 +51,7 @@ jobs:
5251
id: run-oft
5352
uses: ./.github/actions/run-oft
5453
with:
55-
file-patterns: ${{ inputs.oft-file-patterns || 'up-spec/*.adoc up-spec/*.md up-spec/basics up-spec/up-l2/api.adoc *.adoc *.md *.rs .github examples src tests tools' }}
54+
file-patterns: ${{ inputs.oft-file-patterns }}
5655

5756
- name: "Determine exit code"
5857
run: |

0 commit comments

Comments
 (0)