Got everything ready to upload to CPAN #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test nvm-pl | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| perl-version: ["5.38"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: ${{ matrix.perl-version }} | |
| - name: Install dependencies | |
| run: | | |
| cpanm --quiet --notest --installdeps . | |
| - name: Run tests | |
| run: | | |
| prove -lv t/ | |
| - name: Build distribution | |
| run: | | |
| perl Makefile.PL | |
| make | |
| make test | |
| make dist # Ensure distribution builds correctly |