diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index 18053f0..0000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,46 +0,0 @@ -# .github/workflows/linux.yml -name: linux - -on: - push: - branches: - - "*" - tags-ignore: - - "*" - pull_request: - -jobs: - perl_tester: - runs-on: ubuntu-latest - name: "perl v${{ matrix.perl-version }}" - - strategy: - fail-fast: false - matrix: - perl-version: - - "5.30" - - "5.28" - - "5.26" - - "5.24" - - "5.22" - - "5.20" - - "5.18" - - "5.16" - - "5.14" - - "5.12" - - "5.10" - - "5.8" - - container: - image: perldocker/perl-tester:${{ matrix.perl-version }} - - steps: - - uses: actions/checkout@v2 - - name: install deps using cpm - uses: perl-actions/install-with-cpm@v1.3 - with: - install: | - B::COW - sudo: false - - run: perl Makefile.PL - - run: make test diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index 216e7d1..0000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: macos - -on: - push: - branches: - - "*" - tags-ignore: - - "*" - pull_request: - -jobs: - perl: - env: - PERL_USE_UNSAFE_INC: 0 - AUTHOR_TESTING: 1 - AUTOMATED_TESTING: 1 - RELEASE_TESTING: 1 - - runs-on: macOS-latest - - steps: - - uses: actions/checkout@v2 - - name: perl -V - run: perl -V - - uses: actions/checkout@v2 - - name: install deps using cpm - uses: perl-actions/install-with-cpm@v1.3 - with: - install: | - B::COW - sudo: false - - run: perl Makefile.PL - - run: make test diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7669caa --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,181 @@ +name: 'Build & Test' + +on: + push: + branches: + - "*" + tags-ignore: + - "*" + pull_request: + +jobs: + +### +### Fast Test on System Perl +### + + ubuntu-latest: + runs-on: ubuntu-latest + + 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 + - run: perl -V + - name: install deps using cpm + uses: perl-actions/install-with-cpm@v1.3 + with: + install: | + B::COW + - run: perl Makefile.PL + - run: make + - run: make test + +### +### linux testing multiple Perl versions +### + + linux: + runs-on: ubuntu-latest + name: "perl v${{ matrix.perl-version }}" + + strategy: + fail-fast: false + matrix: + perl-version: + - "5.30" + - "5.28" + - "5.26" + - "5.24" + - "5.22" + - "5.20" + - "5.18" + - "5.16" + - "5.14" + - "5.12" + - "5.10" + - "5.8" + + needs: ubuntu-latest + + container: + image: perldocker/perl-tester:${{ matrix.perl-version }} + + steps: + - uses: actions/checkout@v2 + - run: perl -V + - name: install deps using cpm + uses: perl-actions/install-with-cpm@v1.3 + with: + install: | + B::COW + sudo: false + - run: perl Makefile.PL + - run: make + - run: make test + env: + AUTHOR_TESTING: 1 + AUTOMATED_TESTING: 1 + RELEASE_TESTING: 1 + +### +### macOS testing +### + + macos: + name: macOS Perl v${{ matrix.perl-version }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["macos-latest"] + perl-version: + - "5.30" + - "5.28" + - "5.26" + - "5.24" + - "5.22" + - "5.20" + - "5.18" + - "5.16" + - "5.14" + - "5.12" + - "5.10" + needs: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set Up Perl + uses: shogo82148/actions-setup-perl@v1.3.0 + with: + perl-version: ${{ matrix.perl-version }} + - run: perl -V + - name: install deps using cpm + uses: perl-actions/install-with-cpm@v1.3 + with: + install: | + B::COW + sudo: false + - name: perl Makefile.PL + run: perl Makefile.PL + - name: make + run: make + - name: Run Tests + run: make test + env: + AUTHOR_TESTING: 1 + RELEASE_TESTING: 1 + +### +### windows testing +### + + windows: + name: windows Perl v${{ matrix.perl-version }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ["windows-latest"] + perl-version: + - "5.30" + - "5.28" + - "5.26" + - "5.24" + # make issue <= 5.22 view GH issue https://github.com/shogo82148/actions-setup-perl/issues/223 + # - "5.22" + # - "5.20.3" + # - "5.18.4" + # - "5.16.3" + # - "5.14.4" + # - "5.12.5" + # - "5.10.1" + needs: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set Up Perl + uses: shogo82148/actions-setup-perl@v1.3.0 + with: + perl-version: ${{ matrix.perl-version }} + - run: perl -V + - name: install deps using cpanm + uses: perl-actions/install-with-cpanm@v1.1 + with: + install: | + B::COW + sudo: false + - name: perl Makefile.PL + run: perl Makefile.PL + - name: make + run: make + - name: Run Tests + run: make test + env: + AUTHOR_TESTING: 1 + RELEASE_TESTING: 1 + + diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index 580de07..0000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: windows - -on: - push: - branches: - - "*" - tags-ignore: - - "*" - pull_request: - -jobs: - perl: - env: - PERL_USE_UNSAFE_INC: 0 - AUTHOR_TESTING: 0 - AUTOMATED_TESTING: 1 - RELEASE_TESTING: 0 - - runs-on: windows-latest - - steps: - - uses: actions/checkout@master - - name: Set up Perl - run: | - choco install strawberryperl - echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" - - name: perl -V - run: perl -V - - name: install deps using cpm - uses: perl-actions/install-with-cpm@v1.3 - with: - install: | - B::COW - sudo: false - - run: perl Makefile.PL - - run: make test