Skip to content

Commit f04eb4e

Browse files
authored
Merge pull request #58 from foursixnine/oopsitsbrokenagain
Use formatting to get github actions annotations
2 parents 7e66cd1 + 7b2aad0 commit f04eb4e

5 files changed

Lines changed: 31 additions & 8 deletions

File tree

.github/workflows/ci-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
run: perl -V
3434
- name: Set up perl
3535
run: |
36-
cpanm --with-develop --installdeps .
36+
cpanm --with-feature=ci --installdeps --notest .
3737
perl Build.PL
3838
./Build build
3939
- name: Run tests
4040
run: |
4141
TEST_SHARED=1 TEST_SUBREAPER=1 cover -test -report codecovbash
4242
- name: Upload coverage to ☂️ Codecov
43-
uses: codecov/codecov-action@v2
43+
uses: codecov/codecov-action@v3
4444
if: matrix.perl == '5.30'
4545
with:
4646
file: cover_db/codecov.json

.proverc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--merge
2+
--formatter TAP::Formatter::Color

Build.PL

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ use builder::custom;
1414
use File::Basename;
1515
use File::Spec;
1616

17+
my $tap_harness_args = {
18+
"verbosity" => 1,
19+
"merge" => 1,
20+
"formatter_class" => "TAP::Formatter::GitHubActions",
21+
22+
};
23+
1724
my %args = (
1825
license => 'perl_5',
1926
dynamic_config => 0,
@@ -50,9 +57,9 @@ my %args = (
5057

5158
test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/',
5259
recursive_test_files => 1,
53-
54-
60+
tap_harness_args => $tap_harness_args,
5561
);
62+
5663
if (-d 'share') {
5764
$args{share_dir} = 'share';
5865
}

cpanfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ on configure => sub {
99
on test => sub {
1010
requires 'Test::More';
1111
requires 'Test::Exception';
12+
requires 'TAP::Formatter::Color';
13+
requires 'Test::Pod';
1214
};
13-
on develop => sub {
14-
requires 'Devel::Cover::Report::Codecovbash';
15+
16+
feature 'ci' => sub {
17+
requires 'Minilla';
1518
requires 'Devel::Cover';
19+
requires 'Devel::Cover::Report::Codecovbash';
20+
requires 'TAP::Formatter::GitHubActions';
1621
requires 'Test::Pod::Coverage';
17-
requires 'Test::Pod';
18-
}
22+
};

minil.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@ build_class = "builder::custom"
77

88
[Metadata.resources]
99
repository = "https://github.com/openSUSE/Mojo-IOLoop-ReadWriteProcess"
10+
11+
[unsupported]
12+
os = [
13+
"MSWin32",
14+
"cygwin",
15+
]
16+
17+
[tap_harness_args]
18+
merge = 1
19+
formatter = "TAP::Formatter::GitHubActions"

0 commit comments

Comments
 (0)