From ca82436c858fcc0785762f8ec8dd7158473dcd40 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 22 Oct 2023 16:51:13 +0100 Subject: [PATCH 1/2] refactor 'internal tests' --- .github/workflows/test.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 941ec2c289..cd5544e433 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,21 +29,14 @@ jobs: internal-tests: runs-on: ubuntu-latest + strategy: + matrix: + dialect: ["ardupilotmega", "asluav", "autoquad", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common"] steps: - uses: actions/checkout@master - - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable + - uses: dtolnay/rust-toolchain@stable - name: Run internal tests - run: | - dialects=("ardupilotmega", "asluav", "autoquad", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common") - for dialect in "${dialects[@]}"; do - echo "::group::Testing $dialect" - if ! cargo test --verbose --features "$dialect" -- --nocapture; then - echo "::error::Tests failed" - fi - echo "::endgroup::" - done + run: cargo test --verbose --features ${{ matrix.dialect }} -- --nocapture mavlink-dump: runs-on: ubuntu-latest From d91ada3a75350e88ac0b86bed050eca3e42b4eea Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 22 Oct 2023 16:59:53 +0100 Subject: [PATCH 2/2] remove non-existent 'autoquad' feature --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd5544e433..b24aabdf10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - dialect: ["ardupilotmega", "asluav", "autoquad", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common"] + dialect: ["ardupilotmega", "asluav", "matrixpilot", "minimal", "paparazzi", "python_array_test", "slugs", "standard", "test", "ualberta", "uavionix", "icarous", "common"] steps: - uses: actions/checkout@master - uses: dtolnay/rust-toolchain@stable