Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .github/actions/run-oft/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@
name: "Run OpenFastTrace"
description: |
Runs OpenFastTrace with the trace command on the local up-rust workspace.
inputs:
file-patterns:
description: |
A whitespace separated list of glob patterns which specify the files to include in the OFT trace run.
default: "**/*.*"
required: false
java-version:
description: |
The version of Java to use for running OpenFastTrace.
default: "21"
required: false
outputs:
requirements-tracing-exit-code:
description: |
Expand All @@ -38,7 +49,7 @@ runs:
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
java-version: ${{ inputs.java-version }}
- name: Download OpenFastTrace JARs
shell: bash
env:
Expand All @@ -54,21 +65,13 @@ runs:
- name: Run OpenFastTrace
id: run-oft
shell: bash
env:
INPUT_FILE_PATTERNS: ${{ inputs.file-patterns }}
run: |
if java -cp "${{ github.workspace }}/lib/*" \
org.itsallcode.openfasttrace.core.cli.CliStarter trace -o html \
-f "${{ env.TRACING_REPORT_FILE_NAME }}" \
*.md \
*.rs \
.github \
examples \
src \
tests \
tools \
up-spec/*.adoc \
up-spec/*.md \
up-spec/basics \
up-spec/up-l2/api.adoc;
${{ env.INPUT_FILE_PATTERNS }};
then
echo "requirements-tracing-exit-code=0" >> $GITHUB_OUTPUT
echo "All requirements from uProtocol Specification are covered by crate." >> $GITHUB_STEP_SUMMARY
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/requirements-tracing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ name: Requirements tracing

on:
workflow_call:
inputs:
oft-file-patterns:
description: |
A whitespace separated list of glob patterns which specify the files to include in the OFT trace run.
If not specified, defaults to all files relevant for checking up-rust against the uProtocol Specification.
type: string
outputs:
tracing_report_url:
description: 'URL of the requirements tracing report'
Expand All @@ -39,6 +45,8 @@ jobs:
- name: Run OpenFastTrace
id: run-oft
uses: ./.github/actions/run-oft
with:
file-patterns: ${{ inputs.oft-file-patterns || '*.md *.rs .github examples src tests tools up-spec/*.adoc up-spec/*.md up-spec/basics up-spec/up-l2/api.adoc' }}

- name: "Determine exit code"
run: |
Expand Down