From ecbb3826a87a17323eb2e4c83905d7c2589bdb29 Mon Sep 17 00:00:00 2001 From: Christian Renz Date: Sat, 30 Jul 2022 23:17:19 +0800 Subject: Update and rename run-tests-matrix.yml to auto-run-tests-matrix.yml --- .github/workflows/auto-run-tests-matrix.yml | 52 +++++++++++++++++++++++++++++ .github/workflows/run-tests-matrix.yml | 49 --------------------------- 2 files changed, 52 insertions(+), 49 deletions(-) create mode 100644 .github/workflows/auto-run-tests-matrix.yml delete mode 100644 .github/workflows/run-tests-matrix.yml diff --git a/.github/workflows/auto-run-tests-matrix.yml b/.github/workflows/auto-run-tests-matrix.yml new file mode 100644 index 0000000..246774e --- /dev/null +++ b/.github/workflows/auto-run-tests-matrix.yml @@ -0,0 +1,52 @@ +name: Automatically run tests (matrixed) + +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "**" ] + pull_request: + branches: [ "**" ] + + workflow_dispatch: + +jobs: + test-matrix: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + perl: [ '5', '5.32' ] + name: Perl ${{ matrix.perl }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up perl + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: ${{ matrix.perl }} + - name: Identify perl version + run: perl -V + - name: Install dependencies + run: cpanm --installdeps . + - run: cpanm Test::Pod + - run: cpanm Test::Pod::Coverage + - run: cpanm Test::CPAN::Meta + - name: Run tests + run: make test TEST_VERBOSE=1 + test-strawberry: + runs-on: 'windows-latest' + strategy: + matrix: + perl: [ '5', '5.32' ] + name: Perl ${{ matrix.perl }} on windows-latest (strawberry) + steps: + - uses: actions/checkout@v3 + - name: Set up perl + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: ${{ matrix.perl }} + - name: Identify perl version + run: perl -V + - name: Install dependencies + run: cpanm --installdeps . + - name: Run tests + run: make test TEST_VERBOSE=1 diff --git a/.github/workflows/run-tests-matrix.yml b/.github/workflows/run-tests-matrix.yml deleted file mode 100644 index 15e57d3..0000000 --- a/.github/workflows/run-tests-matrix.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Tests (matrixed) - -on: - # Triggers the workflow on push or pull request events but only for the "master" branch - push: - branches: [ "**" ] - pull_request: - branches: [ "**" ] - - workflow_dispatch: - -jobs: - test-matrix: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - perl: [ '5', '5.32' ] - name: Perl ${{ matrix.perl }} on ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - name: Set up perl - uses: shogo82148/actions-setup-perl@v1 - with: - perl-version: ${{ matrix.perl }} - - name: Identify perl version - run: perl -V - - name: Install dependencies - run: cpanm --installdeps . - - name: Run tests - run: make test TEST_VERBOSE=1 - test-strawberry: - runs-on: 'windows-latest' - strategy: - matrix: - perl: [ '5', '5.32' ] - name: Perl ${{ matrix.perl }} on windows-latest (strawberry) - steps: - - uses: actions/checkout@v3 - - name: Set up perl - uses: shogo82148/actions-setup-perl@v1 - with: - perl-version: ${{ matrix.perl }} - - name: Identify perl version - run: perl -V - - name: Install dependencies - run: cpanm --installdeps . - - name: Run tests - run: make test TEST_VERBOSE=1 -- cgit v1.2.3