Skip to content

Commit ca82436

Browse files
committed
refactor 'internal tests'
1 parent 97bc456 commit ca82436

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/test.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,14 @@ jobs:
2929

3030
internal-tests:
3131
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
dialect: ["ardupilotmega", "asluav", "autoquad", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common"]
3235
steps:
3336
- uses: actions/checkout@master
34-
- uses: dtolnay/rust-toolchain@master
35-
with:
36-
toolchain: stable
37+
- uses: dtolnay/rust-toolchain@stable
3738
- name: Run internal tests
38-
run: |
39-
dialects=("ardupilotmega", "asluav", "autoquad", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common")
40-
for dialect in "${dialects[@]}"; do
41-
echo "::group::Testing $dialect"
42-
if ! cargo test --verbose --features "$dialect" -- --nocapture; then
43-
echo "::error::Tests failed"
44-
fi
45-
echo "::endgroup::"
46-
done
39+
run: cargo test --verbose --features ${{ matrix.dialect }} -- --nocapture
4740

4841
mavlink-dump:
4942
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)