From 7cc368e4446e6dd90f13bcb4cb81fa7eba90a65b Mon Sep 17 00:00:00 2001 From: Max Maischein Date: Fri, 9 Feb 2024 18:29:52 +0100 Subject: [PATCH] Commit the github workflows --- .github/workflows/linux.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/macos.yml | 25 +++++++++++++++++++++++++ .github/workflows/windows.yml | 27 +++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 .github/workflows/linux.yml create mode 100644 .github/workflows/macos.yml create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..41e37e4 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,31 @@ +name: linux + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + + runs-on: ubuntu-latest + + strategy: + matrix: + perl-version: + - 'latest' + + container: + image: perl:${{ matrix.perl-version }} + + steps: + - uses: actions/checkout@v1 + - name: perl -V + run: perl -V + - name: Install Dependencies + run: curl -L https://cpanmin.us | perl - --installdeps . + - name: Run Tests + run: prove -l t diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..6123f47 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,25 @@ +name: macos + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Perl + run: brew install perl + - name: perl -V + run: perl -V + - name: Install Dependencies + run: curl -L https://cpanmin.us | perl - --installdeps . + - name: Run Tests + run: prove -l t diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..5bc1dfd --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,27 @@ +name: windows + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@master + - name: Set up Perl + run: | + choco install strawberryperl + echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: perl -V + run: perl -V + - name: Install Dependencies + run: curl -L https://cpanmin.us | perl - --installdeps . + - name: Run Tests + run: prove -l t