Skip to content
Closed
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: 18 additions & 9 deletions .github/native-test.yml → .github/workflows/native-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- '**'

workflow_dispatch:



jobs:
test-native:
Expand All @@ -29,21 +27,32 @@ jobs:
mkdir -p native/lib
mv avionics native/lib/avionics


- name: Download Rocket-test-data v1.0.0 release CSVs
run: |
mkdir -p native/data

curl -s https://api.github.com/repos/CURocketEngineering/Rocket-test-data/releases/tags/v1.0.0 \
| jq -r '.assets[].browser_download_url' \
| while read url; do
echo "Downloading $url"
curl -L "$url" -o native/data/$(basename "$url")
done
curl -s \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/CURocketEngineering/Rocket-Test-Data/releases/tags/v1.0.0 \
| jq -r '.assets[].browser_download_url' \
| while read url; do
echo "Downloading $url"
curl -L "$url" -o native/data/$(basename "$url")
done
- name: Fix file name
run: |
mv native/data/AA.Data.Collection.-.Second.Launch.Trimmed.csv \
native/data/"AA Data Collection - Second Launch Trimmed.csv"

- name: Install PlatformIO Core
run: |
pip install -U platformio

- name: Show native directory structure
run: |
echo "===== native directory tree ====="
ls -R native

- name: Run PlatformIO Tests
working-directory: ./native
run: |
Expand Down
Loading