From 84cebc42c7989e66bf474962113c12029b787147 Mon Sep 17 00:00:00 2001 From: Lieven Hollevoet Date: Thu, 31 Dec 2020 16:46:53 +0100 Subject: [PATCH 1/4] Install GD module to avoid an error popping up in the testlog --- .github/workflows/master.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index cc1ecfcc8..6758e687b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -20,4 +20,5 @@ jobs: - uses: shogo82148/actions-setup-perl@v1 with: perl-version: '5.32' + - run: cpanm GD - run: cd bin ; ./mh -tk 0 -debug process -code_dir ../code/test From b572352de706a168ba84c926fbe26cbab0a18732 Mon Sep 17 00:00:00 2001 From: Lieven Hollevoet Date: Thu, 31 Dec 2020 16:56:24 +0100 Subject: [PATCH 2/4] 2nd attempt to install GD module --- .github/workflows/master.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 6758e687b..e4624b151 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -20,5 +20,5 @@ jobs: - uses: shogo82148/actions-setup-perl@v1 with: perl-version: '5.32' - - run: cpanm GD + - run: sudo apt-get install libgd-gd2-perl - run: cd bin ; ./mh -tk 0 -debug process -code_dir ../code/test From a6fa28f490021921c44cda9235a01099aabe6cdc Mon Sep 17 00:00:00 2001 From: Lieven Hollevoet Date: Thu, 31 Dec 2020 17:09:35 +0100 Subject: [PATCH 3/4] Build on multiple Perl versions --- .github/workflows/master.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index e4624b151..6ad66e34b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -14,11 +14,17 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: test_master: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ['ubuntu-latest'] + perl: [ '5.32', '5.30' ] + name: Perl ${{ matrix.perl }} on ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: shogo82148/actions-setup-perl@v1 with: - perl-version: '5.32' + perl-version: ${{ matrix.perl }} + - run: perl -V - run: sudo apt-get install libgd-gd2-perl - run: cd bin ; ./mh -tk 0 -debug process -code_dir ../code/test From 405144c4c5987e4239940ff35bc940f51cf64f71 Mon Sep 17 00:00:00 2001 From: Lieven Hollevoet Date: Thu, 31 Dec 2020 17:13:47 +0100 Subject: [PATCH 4/4] Update badge to reflect the new CI status --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1c000854..052a8b221 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ MisterHouse =========== -[![Build Status](https://travis-ci.com/hollie/misterhouse.svg?branch=master)](https://travis-ci.com/hollie/misterhouse) +[![Actions Status](https://github.com/hollie/misterhouse/workflows/CI%20on%20master/badge.svg)](https://github.com/hollie/misterhouse/actions) + Perl open source home automation program. It's fun, it's free, and it's entirely geeky.