Skip to content
Open
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
52 changes: 25 additions & 27 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_run:
workflows: ["Build"]
types:
- completed
jobs:
tests:
runs-on: zephyr-xlarge-runner
tests:
runs-on: zephyr-xlarge-runner

steps:
- name: Make the github actions runner recursively take ownership of the github workspace
run: sudo chown -R $(whoami) ${{ github.workspace }}
steps:
- name: Make the github actions runner recursively take ownership of the github workspace
run: sudo chown -R $(whoami) ${{ github.workspace }}

- name: Checkout
uses: actions/checkout@v4
- name: Flash Validation Tests
run: |
cd tests && bash beginTests.sh "flashValidation"
- name: Checkout
uses: actions/checkout@v4

- name: Flash Validation Tests
run: |
cd tests && bash beginTests.sh "flashValidation"

- name: Print Flash Validation Logs
if: always()
run: cat /tmp/flashValidation.log
- name: Upload log file as artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: "FlashValidation.log"
path: /tmp/flashValidation.log
- name: Print Flash Validation Logs
if: always()
run: cat /tmp/flashValidation.log

- name: Upload log file as artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: "FlashValidation.log"
path: /tmp/flashValidation.log
2 changes: 2 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,5 @@ that it exits with 0 on success and 1 on failure.
```

Execution commands are run with `bash -c "execution command"`.

placeholder
6 changes: 6 additions & 0 deletions tests/beginTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,10 @@ done

echo "Test suite is complete" >> $LOGFILE

if [ $TEST_GROUP_RESULT -eq 0 ]; then
echo "$NAME test group passed"
else
echo "$NAME test group failed"
fi

exit $TEST_GROUP_RESULT