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 | 5480705 | 2024-01-09 10:56:09 +0100 | [diff] [blame] | 14 | perl: [ '5.38', '5.36' ] |
Marc Kupietz | 0631ea7 | 2021-03-16 18:30:56 +0100 | [diff] [blame] | 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 | 71eec51 | 2023-01-03 11:48:38 +0100 | [diff] [blame] | 26 | cpanm --installdeps . |
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 |