From 58d958fae4a90d66311a8c6e4aa719a768658464 Mon Sep 17 00:00:00 2001 From: Nicolas R Date: Thu, 5 Nov 2020 13:50:13 -0700 Subject: [PATCH] Basic CI workflow --- .github/workflows/testsuite.yml | 109 ++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 .github/workflows/testsuite.yml diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml new file mode 100644 index 0000000..79b8941 --- /dev/null +++ b/.github/workflows/testsuite.yml @@ -0,0 +1,109 @@ +name: Perl testsuite + +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +jobs: + ubuntu: + env: + PERL_USE_UNSAFE_INC: 0 + AUTHOR_TESTING: 1 + AUTOMATED_TESTING: 1 + RELEASE_TESTING: 1 + working-directory: ./Quota + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: perl -V + run: perl -V + ## ------------------------------------------------- + ## you can use one of these helpers + ## to install dependencies + ## ------------------------------------------------- + # - name: Install Dependencies from cpanfile + ## ------------------------------------------------- + # uses: perl-actions/install-with-cpm@stable + # with: + # cpanfile: "cpanfile" + ## ------------------------------------------------- + # - name: Install Dependencies from a custom list + ## ------------------------------------------------- + # uses: perl-actions/install-with-cpm@stable + # with: + # install: | + # List::of::Distro + # Test::More + - name: Makefile.PL + run: perl -I$(pwd) Makefile.PL + working-directory: ${{ env.working-directory }} + - name: make test + run: make test + working-directory: ${{ env.working-directory }} + + linux: + name: "linux ${{ matrix.perl-version }}" + needs: [ubuntu] + env: + PERL_USE_UNSAFE_INC: 0 + AUTHOR_TESTING: 1 + AUTOMATED_TESTING: 1 + RELEASE_TESTING: 1 + working-directory: ./Quota + + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + perl-version: [ + ## ------------------------------ + ## comment unsupported versions + ## ------------------------------ + "5.32", + "5.30", + "5.28", + "5.26", + "5.24", + "5.22", + "5.20", + "5.18", + "5.16", + "5.14", + "5.12", + "5.10", + "5.8", + ] + + container: + image: perl:${{ matrix.perl-version }} + + steps: + - uses: actions/checkout@v2 + - name: perl -V + run: perl -V + ## ------------------------------------------------- + # - name: Install Dependencies from cpanfile + ## ------------------------------------------------- + # uses: perl-actions/install-with-cpm@stable + # with: + # sudo: false + # cpanfile: "cpanfile" + ## ------------------------------------------------- + # - name: Install Dependencies from a custom list + ## ------------------------------------------------- + # uses: perl-actions/install-with-cpm@stable + # with: + # install: | + # List::of::Distro + # Test::More + - name: Makefile.PL + run: perl -I$(pwd) Makefile.PL + working-directory: ${{ env.working-directory }} + - name: make test + run: make test + working-directory: ${{ env.working-directory }}