From 578a543f1be815a19b3c6f84622840e7e82f1599 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Fri, 8 Apr 2022 15:26:49 -0600 Subject: [PATCH] fix unit test actions for macOS & Windows --- .github/workflows/macos.yml | 10 ++++++++-- .github/workflows/windows.yml | 8 ++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 28434bf..036a073 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -17,9 +17,15 @@ jobs: run: brew install perl - name: Print perl version run: perl -V + - name: Install cpanm + run: curl -sL https://cpanmin.us |perl - App::cpanminus + - name: Install dzil + run: cpanm -n Dist::Zilla - name: Checkout code uses: actions/checkout@v3 - - name: Install dependencies - run: curl -sL https://git.io/cpm |perl - install -g --with-develop --show-build-log-on-failure + - name: Install author dependencies + run: dzil authordeps --missing |cpanm -n + - name: Install module dependencies + run: dzil listdeps --develop --missing |cpanm -n - name: Run tests run: dzil smoke --author --release diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 63e35f0..caa31f8 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -19,9 +19,13 @@ jobs: echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" >>$GITHUB_PATH - name: Print perl version run: perl -V + - name: Install dzil + run: cpanm -n Dist::Zilla - name: Checkout code uses: actions/checkout@v3 - - name: Install dependencies - run: curl -sL https://git.io/cpm |perl - install -g --with-develop --show-build-log-on-failure + - name: Install author dependencies + run: dzil authordeps --missing |cpanm -n + - name: Install module dependencies + run: dzil listdeps --develop --missing |cpanm -n - name: Run tests run: dzil smoke --author --release -- 2.45.2