From 86ba985d190f0a64935165ed83eccb59e86d4b8b Mon Sep 17 00:00:00 2001 From: PeterCJ Date: Sun, 12 May 2024 12:56:01 -0700 Subject: [PATCH] CI: change coveralls from ubuntu-latest to windows-latest --- .github/workflows/perl-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/perl-ci.yml b/.github/workflows/perl-ci.yml index 8cabd1a..412cb79 100644 --- a/.github/workflows/perl-ci.yml +++ b/.github/workflows/perl-ci.yml @@ -10,7 +10,7 @@ name: perl-ci on: # Triggers the workflow on all pushes to branches, and pull request for the main branch push: - branches: + branches: pull_request: branches: [ main ] @@ -19,10 +19,10 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - test: + test: name: Test With Perl ${{ matrix.perl }} ${{ matrix.os }} ${{ matrix.joblabel }} runs-on: ${{ ( ( startsWith(matrix.os, 'ubuntu:') && 'ubuntu-latest' ) || ( startsWith(matrix.os, 'macos:') && 'macos-latest' ) || startsWith(matrix.os, 'windows:') && 'windows-latest' ) || matrix.os }} - env: + env: PCJ: ${{ ( startsWith(matrix.os, 'windows') && '(get-command perl).Path' ) || 'which perl' }} strategy: fail-fast: false @@ -32,8 +32,8 @@ jobs: #perl: [ '5.10', '5.32' ] perl: [ '5.10', '5.34'] include: - - perl: '5.32' - os: 'ubuntu-latest' + - perl: '5.34' + os: 'windows-latest' coverage: true steps: - name: Checkout code @@ -78,7 +78,7 @@ jobs: # path: ./bin/nppConfigCheck.exe - name: Run and report test coverage if: ${{ matrix.coverage }} - env: + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cpanm -n Devel::Cover::Report::Coveralls