Skip to content

Commit

Permalink
github: action: test
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin committed Oct 10, 2024
1 parent bf736d4 commit 7f13f61
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,15 @@ jobs:
chmod +x ./examples/*
- name: Run Tests
env:
STOP_ON_FAILURE: "false" # Set to "true" to stop on first failure
STOP_ON_FAILURE: "false"
TESTS: |
Basic Ping1D Test w Ping1:ping_1d:--serial-port /dev/ttyUSB_Ping1:30
Basic Ping1D Test w Ping2:ping_1d:--serial-port /dev/ttyUSB_Ping2:30
# Format: Test Name:Example Name:Additional Args:Timeout
run: |
/etc/github_runner/run-tests.sh \
"Basic Ping1D Test w Ping1:ping_1d:--serial-port /dev/ttyUSB_Ping1:30" \
"Basic Ping1D Test w Ping2:ping_1d:--serial-port /dev/ttyUSB_Ping2:30"
# Add more tests here, each on a new line with a backslash at the end
# Convert multiline TESTS env var to space-separated arguments
tests=$(echo "$TESTS" | tr '\n' ' ')
/etc/github_runner/run-tests.sh $STOP_ON_FAILURE $tests
- name: Post CI management script
if: always()
run: |
Expand Down

0 comments on commit 7f13f61

Please sign in to comment.