diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 5747e6f..508da84 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,42 +1,20 @@ -name: linux - +name: Perl Matrix Testing on: - push - jobs: - perl: - runs-on: ubuntu-latest + build: + runs-on: ${{ matrix.os }} strategy: matrix: - perl-version: - - '5.8' - - '5.10' - - '5.12' - - '5.14' - - '5.16' - - '5.18' - - '5.20' - - '5.22' - - '5.24' - - '5.26' - - '5.28' - - '5.30' - - '5.32' - container: - image: perl:${{ matrix.perl-version }} + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + perl: [ '5.8', '5.10', '5.12', '5.14', '5.16', '5.18', '5.20', '5.22', '5.24', '5.26', '5.28', '5.34', '5.32', '5.30' ] + name: Perl ${{ matrix.perl }} on ${{ matrix.os }} steps: - - uses: actions/checkout@v1 - - name: Install OS Packages - run: | - apt-get update; - apt-get -y install xmlsec1; - - name: Install Dependencies - run: | - cpanm -nq --installdeps . ; - - name: Build Module - run: | - perl Makefile.PL; - make - - name: Run Tests - run: | - prove -lr -l -b -I inc t + - uses: actions/checkout@v3 + - name: Set up perl + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: ${{ matrix.perl }} + - run: perl -V + - run: cpanm --installdeps . + - run: prove -lv t