Skip to content

Commit 84bd2ea

Browse files
committed
Checking all uc1
Signed-off-by: Christian Henkel <christian.henkel2@de.bosch.com>
1 parent b8fd705 commit 84bd2ea

2 files changed

Lines changed: 23 additions & 21 deletions

File tree

.github/workflows/check_examples.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,25 @@ on:
44
- push
55

66
jobs:
7-
# find-files:
8-
# runs-on: ubuntu-latest
9-
# outputs:
10-
# files: ${{ steps.set-files.outputs.files }}
11-
# steps:
12-
# - uses: actions/checkout@v3
13-
# - name: Find SCXML files
14-
# id: set-files
15-
# run: |
16-
# FILES=$(find examples -type f \( -name "*.ascxml" -o -name "*.scxml" -o -name "*.xml" \) | jq -R . | jq -s .)
17-
# FILES=$(echo "$FILES" | tr -d '\n') # Ensure single-line JSON
18-
# echo "Files found: $FILES"
19-
# echo "files=$FILES" >> $GITHUB_OUTPUT
7+
find-files:
8+
runs-on: ubuntu-latest
9+
outputs:
10+
files: ${{ steps.set-files.outputs.files }}
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Find SCXML files
14+
id: set-files
15+
run: |
16+
FILES=$(find examples/UC1-vacuum-cleaner -type f \( -name "*.ascxml" -o -name "*.scxml" -o -name "*.xml" \) | jq -R . | jq -s .)
17+
FILES=$(echo "$FILES" | tr -d '\n') # Ensure single-line JSON
18+
echo "Files found: $FILES"
19+
echo "files=$FILES" >> $GITHUB_OUTPUT
2020
validate-xml:
2121
strategy:
2222
matrix:
23-
path:
24-
# - ${{ fromJson(needs.find-files.outputs.files) }}
25-
- examples/UC1-vacuum-cleaner/high-level-models/nodes/robot_model.scxml
26-
- examples/UC1-vacuum-cleaner/main.xml
27-
# needs: find-files
23+
path:
24+
- ${{ fromJson(needs.find-files.outputs.files) }}
25+
needs: find-files
2826
runs-on: ubuntu-latest
2927
steps:
3028
- uses: actions/checkout@v3

examples/UC1-vacuum-cleaner/high-level-models/main.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
<roaml>
2-
<parameters>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<roaml
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="../../../data-format-specifications/RoAML-XML/main.xsd">
5+
6+
<mc_parameters>
37
<max_time value="40" unit="s" />
48
<bt_tick_rate value="5.0" />
59
<bt_tick_if_not_running value="true" />
6-
</parameters>
10+
</mc_parameters>
711

812
<behavior_tree>
913
<input type="bt.cpp-xml" src="./bt_policies/policy.xml" />

0 commit comments

Comments
 (0)