Use matrix strategy
This commit is contained in:
@@ -8,6 +8,16 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- COMPANION
|
||||||
|
- ARM9X
|
||||||
|
- X9LITE
|
||||||
|
- X7
|
||||||
|
- XLITE
|
||||||
|
- X9
|
||||||
|
- COLORLCD
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/raphaelcoeffic/opentx-commit-tests
|
image: ghcr.io/raphaelcoeffic/opentx-commit-tests
|
||||||
volumes:
|
volumes:
|
||||||
@@ -19,17 +29,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
-
|
-
|
||||||
name: Test COMPANION
|
name: Test ${{ matrix.target }}
|
||||||
|
env:
|
||||||
|
FLAVOR: ${{ matrix.target }}
|
||||||
run: |
|
run: |
|
||||||
echo "Running commit tests for COMPANION"
|
echo "Running commit tests"
|
||||||
FLAVOR=COMPANION ./tools/commit-tests.sh
|
./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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user