Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 1 | name: CI Linux |
2 | on: | ||||
3 | push: | ||||
4 | branches: | ||||
5 | - '*' | ||||
6 | tags-ignore: | ||||
7 | - '*' | ||||
8 | pull_request: | ||||
9 | jobs: | ||||
Marc Kupietz | 0631ea7 | 2021-03-16 18:30:56 +0100 | [diff] [blame] | 10 | build: |
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 11 | runs-on: ubuntu-latest |
12 | strategy: | ||||
13 | matrix: | ||||
Marc Kupietz | 0631ea7 | 2021-03-16 18:30:56 +0100 | [diff] [blame] | 14 | perl: [ '5.32', '5.30', '5.20' ] |
15 | name: Perl ${{ matrix.perl }} | ||||
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 16 | steps: |
Marc Kupietz | 70031fa | 2022-12-16 18:12:14 +0100 | [diff] [blame] | 17 | - uses: actions/checkout@v3 |
Marc Kupietz | 0631ea7 | 2021-03-16 18:30:56 +0100 | [diff] [blame] | 18 | - name: Setup Perl environment |
Marc Kupietz | 70031fa | 2022-12-16 18:12:14 +0100 | [diff] [blame] | 19 | uses: shogo82148/actions-setup-perl@v1 |
Marc Kupietz | 0631ea7 | 2021-03-16 18:30:56 +0100 | [diff] [blame] | 20 | with: |
21 | perl-version: ${{ matrix.perl }} | ||||
22 | - run: perl -V | ||||
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 23 | - name: Install dependencies |
Marc Kupietz | 0631ea7 | 2021-03-16 18:30:56 +0100 | [diff] [blame] | 24 | run: | |
25 | cpanm File::ShareDir::Install | ||||
Akron | b925791 | 2022-12-28 15:35:17 +0100 | [diff] [blame^] | 26 | cpanm --installdeps -v . |
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 27 | - name: Install |
28 | run: | | ||||
29 | perl Makefile.PL | ||||
30 | make install | ||||
31 | - name: Run tests | ||||
Marc Kupietz | 0631ea7 | 2021-03-16 18:30:56 +0100 | [diff] [blame] | 32 | run: prove -lr t |