summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
blob: 40151457ab179fa727cc4f90a66dbf418fc83546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: windows

on:
    push:
        branches:
            - '*'
        tags-ignore:
            - '*'
        pull_request:

jobs:
    perl:
        runs-on: ${{ matrix.os }}
        strategy:
          matrix:
            os:
                - windows-2019
                - windows-2016

        steps:
            - uses: actions/checkout@v2
            - name: Set up Perl
              run: |
                choco install strawberryperl
                echo "C:\strawberry\c\bin"         >> $GITHUB_PATH
                echo "C:\strawberry\perl\site\bin" >> $GITHUB_PATH
                echo "C:\strawberry\perl\bin"      >> $GITHUB_PATH
            - name: Perl version
              run: perl -V
            - name: Install dependencies
              run: cpan -M https://www.cpan.org -T .
            - name: Run tests
              run: |
                perl Makefile.PL
                make test