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: |
| 10 | perl: |
| 11 | runs-on: ubuntu-latest |
| 12 | strategy: |
| 13 | matrix: |
| 14 | perl-version: |
| 15 | - '5.20' |
| 16 | - '5.22' |
| 17 | - '5.30' |
| 18 | - '5.32' |
| 19 | java: [ 8, 11 ] |
| 20 | name: Perl ${{ matrix.perl-version }} and Java ${{ matrix.java }} on Linux |
| 21 | container: |
| 22 | image: perl:${{ matrix.perl-version }} |
| 23 | steps: |
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 24 | - uses: actions/setup-java@v1 |
| 25 | with: |
| 26 | java-version: ${{ matrix.java }} |
| 27 | java-package: jre |
Marc Kupietz | a93b586 | 2021-03-16 16:29:58 +0100 | [diff] [blame^] | 28 | - uses: actions/checkout@v2 |
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 29 | - name: perl -V |
| 30 | run: perl -V |
Marc Kupietz | a93b586 | 2021-03-16 16:29:58 +0100 | [diff] [blame^] | 31 | - name: cpanm -v |
| 32 | run: cpanm -v |
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 33 | - name: Install dependencies |
Marc Kupietz | a93b586 | 2021-03-16 16:29:58 +0100 | [diff] [blame^] | 34 | run: cpanm -n --installdeps . |
Marc Kupietz | 134bd87 | 2021-03-16 14:32:35 +0100 | [diff] [blame] | 35 | - name: Install |
| 36 | run: | |
| 37 | perl Makefile.PL |
| 38 | make install |
| 39 | - name: Run tests |
| 40 | run: prove -lr t/ |