Skip to content

Commit

Permalink
Improve github workflow for macOS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timlegge committed Feb 20, 2022
1 parent be52043 commit 99460c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/macos-10.15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 5 additions & 7 deletions .github/workflows/macos-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 99460c2

Please sign in to comment.