240925.1 · 7069053812ab52077b99c23ecf1f39fef199c7b1
Update the GitHub actions, and drop Appveyor because we have Windows in GitHub Actions
reading declarations
.appveyor.yml
@@ -1,29 +0,0 @@-branches:- except:- - /travis/-skip_tags: true--cache:-- - C:\strawberry---install:-- - if not exist "C:\strawberry" cinst strawberryperl- - set PATH=C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%- - cd C:\projects\%APPVEYOR_PROJECT_NAME%-- - cpanm File::Next---build_script:-- - perl Makefile.PL-- - gmake fulltest-- # Add an author test target too.---# Started from http://blogs.perl.org/users/eserte/2016/04/testing-with-appveyor.html
.github/workflows/testsuite.yml
@@ -9,34 +9,23 @@ on: pull_request: jobs:- ubuntu:- env:- PERL_USE_UNSAFE_INC: 0- AUTHOR_TESTING: 1- AUTOMATED_TESTING: 1- RELEASE_TESTING: 1-+ # Builds a list of Perl versions to work with.+ perl-versions: runs-on: ubuntu-latest-+ name: List Perl versions+ outputs:+ perl-versions: ${{ steps.action.outputs.perl-versions }} steps:- - uses: actions/checkout@v2- - name: perl -V- run: perl -V- - name: Install perl-doc- run: sudo apt-get install perl-doc- - name: Install dependencies- uses: perl-actions/install-with-cpanm@v1+ - id: action+ uses: perl-actions/perl-versions@v1 with:- cpanfile: "cpanfile"- - name: Makefile.PL- run: perl -I$(pwd) Makefile.PL- - name: make test- run: make test+ since-perl: v5.10+ with-devel: true linux:- name: "linux ${{ matrix.perl-version }}"- needs: [ubuntu] runs-on: ubuntu-latest+ name: "Perl ${{ matrix.perl-version }}"+ needs: [perl-versions] env: PERL_USE_UNSAFE_INC: 0@@ -46,42 +35,27 @@ jobs: PERL_CARTON_PATH: $GITHUB_WORKSPACE/local strategy:+ fail-fast: false matrix:- perl-version:- - "latest"- - "5.36"- - "5.34"- - "5.32"- - "5.30"- - "5.28"- - "5.26"- - "5.24"- - "5.22"- - "5.20"- - "5.18"- - "5.16"- - "5.14"- - "5.12"- - "5.10"+ perl-version: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }} - container:- image: perl:${{ matrix.perl-version }}+ container: perldocker/perl-tester:${{ matrix.perl-version }} steps:- - uses: actions/checkout@v2- - name: perl -V- run: perl -V- - name: Install Dependencies+ - uses: actions/checkout@v4+ - run: perl -V+ - name: Install dependencies uses: perl-actions/install-with-cpanm@v1 with:- sudo: false cpanfile: "cpanfile"+ sudo: false+ - run: perl -MFile::Next -e1 - run: perl Makefile.PL - run: make - run: make test macOS:- needs: [ubuntu, linux]+ needs: [perl-versions] runs-on: macOS-latest env:@@ -92,40 +66,39 @@ jobs: PERL_CARTON_PATH: $GITHUB_WORKSPACE/local steps:- - uses: actions/checkout@v2- - name: Set up Perl- run: brew install perl- - name: perl -V- run: perl -V- - name: Install Dependencies+ - uses: actions/checkout@v4+ - run: brew install perl+ - run: perl -V+ - name: Install dependencies uses: perl-actions/install-with-cpanm@v1 with:- sudo: false cpanfile: "cpanfile"+ sudo: false+ - run: perl -MFile::Next -e1 - run: perl Makefile.PL - run: make - run: make test windows:- needs: [ubuntu, linux] runs-on: windows-latest+ name: "windows"+ needs: [perl-versions]+ env:+ PERL_USE_UNSAFE_INC: 0+ AUTHOR_TESTING: 1+ AUTOMATED_TESTING: 1+ RELEASE_TESTING: 1+ PERL_CARTON_PATH: $GITHUB_WORKSPACE/local steps:- - uses: actions/checkout@v2- - name: Set up Perl- run: |- choco install strawberryperl- echo 'PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin' >> $GITHUB_ENV- - name: perl -V- run: perl -V- - name: Install Dependencies+ - uses: actions/checkout@v4+ - run: perl -V+ - name: Install dependencies uses: perl-actions/install-with-cpanm@v1 with:- sudo: false cpanfile: "cpanfile"- - name: perl Makefile.PL- run: perl Makefile.PL- - name: make- run: make- - name: Run Tests- run: make test+ sudo: false+ - run: perl -MFile::Next -e1+ - run: perl Makefile.PL+ - run: make+ - run: make test