Skip to content

Commit 44362b0

Browse files
committed
Add running tests to actions
Squashed commit of the following: commit e793025 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:51:32 2022 -0500 fix commit a49ad0e Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:46:53 2022 -0500 fix commit 1251e04 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:44:51 2022 -0500 fix commit da179ad Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:39:23 2022 -0500 fix commit 0468f22 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:35:25 2022 -0500 fix commit be2fcb3 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:30:24 2022 -0500 fix commit 41b8055 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:23:04 2022 -0500 fix commit eb8a894 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:16:36 2022 -0500 fix commit 3cfcc0f Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:14:16 2022 -0500 fix commit ef84771 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:10:37 2022 -0500 fix commit 3394944 Author: Gavin Hayes <[email protected]> Date: Thu Nov 17 00:08:56 2022 -0500 fix commit 86b9399 Author: Gavin Hayes <[email protected]> Date: Wed Nov 16 23:56:56 2022 -0500 fix commit d2360dc Author: Gavin Hayes <[email protected]> Date: Wed Nov 16 23:55:25 2022 -0500 fix commit 62fde7b Author: Gavin Hayes <[email protected]> Date: Wed Nov 16 23:41:36 2022 -0500 fix commit 5800440 Author: Gavin Hayes <[email protected]> Date: Wed Nov 16 23:30:36 2022 -0500 fix commit 8801a34 Author: Gavin Hayes <[email protected]> Date: Wed Nov 16 23:13:39 2022 -0500 fix commit fe09b87 Author: Gavin Hayes <[email protected]> Date: Wed Nov 16 23:12:03 2022 -0500 add running author tests to actions
1 parent ae907e5 commit 44362b0

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Build Perl-Dist-APPerl
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Fetch repo and submodules
13+
- name: Fetch repo
1414
uses: actions/checkout@v3
1515
with:
1616
path: 'Perl-Dist-APPerl'
@@ -36,6 +36,41 @@ jobs:
3636
if-no-files-found: error
3737
path: Perl-Dist-APPerl-v*.tar.gz
3838

39+
test-Perl-Dist-APPerl:
40+
name: test Perl-Dist-APPerl
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
version: ['5.10', '5.36']
45+
steps:
46+
- name: Fetch repo
47+
uses: actions/checkout@v3
48+
with:
49+
path: 'Perl-Dist-APPerl'
50+
- name: Install Perl
51+
uses: shogo82148/actions-setup-perl@v1
52+
with:
53+
perl-version: ${{ matrix.version }}
54+
install-modules-with: cpanm
55+
install-modules: B::Keywords HTTP::Tiny Test::Pod::LinkCheck::Lite
56+
- name: Setup for tests
57+
run: |
58+
cd Perl-Dist-APPerl
59+
cpanm --installdeps --notest .
60+
- name: Run tests
61+
run: |
62+
cd Perl-Dist-APPerl
63+
perl Makefile.PL
64+
make
65+
make test
66+
make authortest
67+
- name: Archive CPAN logs
68+
if: ${{ failure() }}
69+
uses: actions/upload-artifact@v3
70+
with:
71+
name: cpan_log
72+
path: /home/runner/.cpanm/work/*/build.log
73+
3974
build-apperl:
4075
name: Build perl.com
4176
runs-on: ubuntu-latest
@@ -97,7 +132,7 @@ jobs:
97132
create-release:
98133
name: Create release
99134
runs-on: ubuntu-latest
100-
needs: [ build-linux, build-apperl ]
135+
needs: [ build-linux, build-apperl, test-Perl-Dist-APPerl ]
101136
steps:
102137
- name: Fetch build artifacts
103138
if: ${{ github.ref_type == 'tag' }}

0 commit comments

Comments
 (0)