From 6cc0c460718db556d21170ab5889588c34464153 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 12 Apr 2021 15:45:06 +0200 Subject: [PATCH 1/6] Try runners on COLORLCD --- .github/workflows/actions.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 000000000..08bb6bff5 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,23 @@ +name: OpenTX Commit Tests +on: + push: + branches: [ 2.4 ] + pull_request: + branches: [ 2.4 ] + +jobs: + test: + runs-on: ubuntu-latest + container: + image: ghcr.io/raphaelcoeffic/opentx-commit-tests + volumes: + - ${{ github.workspace }}:/src + steps: + - + name: Check out the repo + uses: actions/checkout@v2 + - + name: Test COLORLCD + run: | + echo "Running commit tests for COLORLCD" + FLAVOR=COLORLCD ./tools/commit-tests.sh From 260ce1f55befaa3ed6d0f5fc6eace0e2bd1ed30f Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 12 Apr 2021 17:17:39 +0200 Subject: [PATCH 2/6] Add X7 build step I should probably use the matrix strategy instead, but well. --- .github/workflows/actions.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 08bb6bff5..12ed66a5e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -21,3 +21,8 @@ jobs: run: | echo "Running commit tests for COLORLCD" FLAVOR=COLORLCD ./tools/commit-tests.sh + - + name: Test X7 + run: | + echo "Running commit tests for X7" + FLAVOR=COLORLCD ./tools/commit-tests.sh From 0e4e07e6ed873ba58c2b5afcb128866fcc11152b Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 12 Apr 2021 17:56:17 +0200 Subject: [PATCH 3/6] Added submodules checkout --- .github/workflows/actions.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 12ed66a5e..28d19b14e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -16,6 +16,8 @@ jobs: - name: Check out the repo uses: actions/checkout@v2 + with: + submodules: true - name: Test COLORLCD run: | From 3792cb0f1ba15b21a88ec4fb355a1924f66123b7 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 12 Apr 2021 22:53:17 +0200 Subject: [PATCH 4/6] Fixed typo --- .github/workflows/actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 28d19b14e..ee0777048 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -27,4 +27,4 @@ jobs: name: Test X7 run: | echo "Running commit tests for X7" - FLAVOR=COLORLCD ./tools/commit-tests.sh + FLAVOR=X7 ./tools/commit-tests.sh From db45f2c618ca948b4b87e03290d871fd284efc0f Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 13 Apr 2021 00:25:40 +0200 Subject: [PATCH 5/6] Added COMPANION flavor --- .github/workflows/actions.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index ee0777048..bf162de47 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -18,6 +18,11 @@ jobs: uses: actions/checkout@v2 with: submodules: true + - + name: Test COMPANION + run: | + echo "Running commit tests for COMPANION" + FLAVOR=COMPANION ./tools/commit-tests.sh - name: Test COLORLCD run: | From 82196d4504827f13b9700e4237f49802b2db9ebc Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 14 Apr 2021 04:32:12 +0200 Subject: [PATCH 6/6] 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