From 63bec23083a6ba61ad3260ddb5b12c55c626d796 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Tue, 16 Jun 2020 16:06:39 -0400 Subject: [PATCH] Don't test 5.10 and 5.12 on Windows https://github.com/shogo82148/actions-setup-perl/issues/225 --- .github/workflows/build-and-test.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index abe35618..8397a5bb 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -26,18 +26,18 @@ jobs: - name: dzil stale run: dzil stale | grep -v Dist::Zilla::Plugin::OALDERS::TidyAll | xargs cpm install -g --show-build-log-on-failure - name: Build - run: dzil build --no-tgz --in dzil_build_dir + run: dzil build --no-tgz --in build_dir - name: Maybe skip Changes test if: github.ref == 'refs/heads/master' - run: rm dzil_build_dir/xt/release/changes_has_content.t && perl -pi -e "s|'xt/release/changes_has_content.t'||g" dzil_build_dir/xt/author/* + run: rm build_dir/xt/release/changes_has_content.t && perl -pi -e "s|'xt/release/changes_has_content.t'||g" build_dir/xt/author/* - uses: actions/upload-artifact@master with: name: build_dir - path: dzil_build_dir + path: build_dir - name: Install deps if: success() run: > - cd dzil_build_dir + cd build_dir && cpm install -g --cpanfile cpanfile --with-develop @@ -55,7 +55,7 @@ jobs: cpm install -g --show-build-log-on-failure Devel::Cover::Report::Codecov && - cd dzil_build_dir + cd build_dir && prove -lr --jobs 2 t xt && cover -report codecov test_linux: @@ -98,11 +98,10 @@ jobs: if: success() run: prove -lr --jobs 2 t xt test_macos: - runs-on: ${{ matrix.os }} + runs-on: macos-latest strategy: fail-fast: true matrix: - os: ["macos-latest"] perl-version: - "5.10" - "5.12" @@ -115,7 +114,7 @@ jobs: - "5.26" - "5.28" - "5.30" - name: Perl ${{ matrix.perl-version }} on ${{ matrix.os }} + name: Perl ${{ matrix.perl-version }} on macOS needs: build steps: - uses: actions/checkout@v2 @@ -139,14 +138,11 @@ jobs: AUTHOR_TESTING: 1 RELEASE_TESTING: 1 test_windows: - runs-on: ${{ matrix.os }} + runs-on: windows-latest strategy: fail-fast: false matrix: - os: ["windows-latest"] perl-version: - - "5.10" - - "5.12" - "5.14" - "5.16" - "5.18" @@ -156,7 +152,7 @@ jobs: - "5.26" - "5.28" - "5.30" - name: Perl ${{ matrix.perl-version }} on ${{ matrix.os }} + name: Perl ${{ matrix.perl-version }} on windows needs: build steps: - uses: actions/checkout@v2