From 82196d4504827f13b9700e4237f49802b2db9ebc Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 14 Apr 2021 04:32:12 +0200 Subject: [PATCH] Use matrix strategy --- .github/workflows/actions.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index bf162de47..ba72ac70e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -8,6 +8,16 @@ on: jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + target: + - COMPANION + - ARM9X + - X9LITE + - X7 + - XLITE + - X9 + - COLORLCD container: image: ghcr.io/raphaelcoeffic/opentx-commit-tests volumes: @@ -19,17 +29,9 @@ jobs: with: submodules: true - - name: Test COMPANION + name: Test ${{ matrix.target }} + env: + FLAVOR: ${{ matrix.target }} run: | - echo "Running commit tests for COMPANION" - FLAVOR=COMPANION ./tools/commit-tests.sh - - - name: Test COLORLCD - run: | - echo "Running commit tests for COLORLCD" - FLAVOR=COLORLCD ./tools/commit-tests.sh - - - name: Test X7 - run: | - echo "Running commit tests for X7" - FLAVOR=X7 ./tools/commit-tests.sh + echo "Running commit tests" + ./tools/commit-tests.sh