From 99460c25883f6470cf4fd254bca077e98c350d93 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Sun, 20 Feb 2022 14:02:45 -0400 Subject: [PATCH] Improve github workflow for macOS tests --- .github/workflows/macos-10.15.yml | 12 +++++------- .github/workflows/macos-latest.yml | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/macos-10.15.yml b/.github/workflows/macos-10.15.yml index 420127e..f76e4ef 100644 --- a/.github/workflows/macos-10.15.yml +++ b/.github/workflows/macos-10.15.yml @@ -20,19 +20,17 @@ jobs: steps: - uses: actions/checkout@v2 - + - name: uses install-with-cpanm + uses: perl-actions/install-with-cpanm@v1 + with: + cpanfile: "cpanfile" + sudo: false # REF: https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md (see link above, at the time of writing we get Perl 5.34.0 with macOS 10.15) - - name: Set up Perl - run: | - brew install perl - curl https://cpanmin.us | perl - App::cpanminus -n - echo "/Users/runner/perl5/bin" >> $GITHUB_PATH - name: perl -V run: perl -V - name: Run Tests run: | - curl -sL https://cpanmin.us/ | perl - -nq --with-develop --installdeps -v . perl Makefile.PL make make test diff --git a/.github/workflows/macos-latest.yml b/.github/workflows/macos-latest.yml index eb1fad0..d6b1e8f 100644 --- a/.github/workflows/macos-latest.yml +++ b/.github/workflows/macos-latest.yml @@ -19,18 +19,16 @@ jobs: steps: - uses: actions/checkout@v2 - - - name: Set up Perl - run: | - brew install perl - curl https://cpanmin.us | perl - App::cpanminus -n - echo "/Users/runner/perl5/bin" >> $GITHUB_PATH + - name: uses install-with-cpanm + uses: perl-actions/install-with-cpanm@v1 + with: + cpanfile: "cpanfile" + sudo: false - name: perl -V run: perl -V - name: Run Tests run: | - curl -sL https://cpanmin.us/ | perl - -nq --with-develop --installdeps -v . perl Makefile.PL make make test