This repository was archived by the owner on Oct 10, 2025. It is now read-only.
feat: add initial Perl console application scaffolding #1
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: Testing | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| name: Lint | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo npm install -g markdownlint-cli | |
| - name: Run linting | |
| run: markdownlint "**/*.md" | |
| test: | |
| runs-on: ubuntu-latest | |
| name: Test | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: "5.20" | |
| - name: Install cpanminus and Carmel | |
| run: | | |
| curl -L https://cpanmin.us | perl - App::cpanminus | |
| cpanm --local-lib=~/perl5 local::lib | |
| eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) | |
| cpanm Carmel | |
| - name: Install project dependencies | |
| run: | | |
| eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) | |
| export PATH="$HOME/perl5/bin:$PATH" | |
| carmel install | |
| - name: Run tests | |
| run: | | |
| eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) | |
| export PATH="$HOME/perl5/bin:$PATH" | |
| carmel exec -- prove -l t/ |