From 98ca1394842879651d05d896194b2f69715b0382 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 00:52:24 -0700 Subject: [PATCH 1/8] missing test files --- cpanfile | 1 + 1 file changed, 1 insertion(+) diff --git a/cpanfile b/cpanfile index e5af0c2..bb9deed 100644 --- a/cpanfile +++ b/cpanfile @@ -79,3 +79,4 @@ requires "WWW::Mechanize"; requires "WWW::Shorten"; requires "WWW::Shorten::TinyURL"; requires "XML::RSS::Parser"; +requires "Test::Differences"; From 1eb9b21f0293157d4f1eb360e2ea59522b945d93 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 00:56:05 -0700 Subject: [PATCH 2/8] use proxy mirror --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0c2f2d..f5a29e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - name: Install libraries and cpm run: | apt update && apt -y install libprotobuf-dev libprotoc-dev - cpanm install App::cpm + cpanm install --mirror http://cpanproxy/ --mirror-only App::cpm - name: Install depedencies run: | cpm install -v --resolver 02packages,http://cpanproxy/ --configure-timeout 180 --build-timeout 600 --cpanfile=./cpanfile From 13c1b167f942e151081a8f70528d41809ec93c56 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 01:09:51 -0700 Subject: [PATCH 3/8] Update ci.yml change a bit? --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5a29e5..66708ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,4 +28,4 @@ jobs: cpm install -v --resolver 02packages,http://cpanproxy/ --configure-timeout 180 --build-timeout 600 --cpanfile=./cpanfile - name: Run tests run: | - bin/run-tests + prove From c8ed8f00abcc015c1dc8e61b5a102c652cfdeb2a Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 01:25:37 -0700 Subject: [PATCH 4/8] setup local::lib properly --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66708ad..6c1afb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,10 +22,14 @@ jobs: - name: Install libraries and cpm run: | apt update && apt -y install libprotobuf-dev libprotoc-dev - cpanm install --mirror http://cpanproxy/ --mirror-only App::cpm + cpanm local::lib + eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" + cpanm --mirror http://cpanproxy/ --mirror-only App::cpm - name: Install depedencies run: | + eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" cpm install -v --resolver 02packages,http://cpanproxy/ --configure-timeout 180 --build-timeout 600 --cpanfile=./cpanfile - name: Run tests run: | + eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" prove From 721504d4078422ecaced60386ece47c7a1091c47 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 01:40:52 -0700 Subject: [PATCH 5/8] speed things up a bit more --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c1afb9..98cdf2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,11 +24,11 @@ jobs: apt update && apt -y install libprotobuf-dev libprotoc-dev cpanm local::lib eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" - cpanm --mirror http://cpanproxy/ --mirror-only App::cpm + cpanm --mirror http://cpanproxy/ --mirror-only --notest App::cpm - name: Install depedencies run: | eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" - cpm install -v --resolver 02packages,http://cpanproxy/ --configure-timeout 180 --build-timeout 600 --cpanfile=./cpanfile + cpm install -v --no-test --resolver 02packages,http://cpanproxy/ --configure-timeout 180 --build-timeout 600 --cpanfile=./cpanfile - name: Run tests run: | eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" From 2e11d8bcc28b09ae528b1c89207a44938b31019a Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 01:43:56 -0700 Subject: [PATCH 6/8] found the problem --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98cdf2d..34b8ffe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Install depedencies run: | eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" - cpm install -v --no-test --resolver 02packages,http://cpanproxy/ --configure-timeout 180 --build-timeout 600 --cpanfile=./cpanfile + cpm install -g -v --no-test --resolver 02packages,http://cpanproxy/ --configure-timeout 180 --build-timeout 600 --cpanfile=./cpanfile - name: Run tests run: | eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" From 3cbdab2454e237b26ab39d0df39ce0ed9ec59729 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 10:00:28 -0700 Subject: [PATCH 7/8] Try to run on pull requests too --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34b8ffe..63f2e81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ name: CI -on: [push] +on: [push, pull_request] jobs: perl-job: From 8bf44ea5566d88f77b99fc4be8bc463bc34b2dd7 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Fri, 30 Oct 2020 11:30:28 -0700 Subject: [PATCH 8/8] dont setup actions on non-master branches --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63f2e81..914e21d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,12 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: perl-job: