Skip to content

Commit

Permalink
updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Oct 2, 2024
1 parent 109ce51 commit c8b579c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-24.04
# no libssl on windows
# - windows-latest

perl:
- '5.22'
- '5.26'
- '5.30'
- '5.32'
- '5.40'

fail-fast: false

Expand All @@ -34,7 +32,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
Expand All @@ -43,7 +41,7 @@ jobs:

- name: CPAN Cache
id: cpan-cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: thirdparty
key: ${{ matrix.os }}-cpan-${{ matrix.perl }}-${{ hashFiles('**/Makefile.PL') }}-${{ hashFiles('**/cpanfile') }}
Expand Down
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.2.3 2024-10-02 15:33:33 +0200 Tobias Oetiker <[email protected]>

- update github unit tests
- fix shift warnings in Perl v5.40
- remove unused variable

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ $t->get_ok('/gugus')
->log_debug_like(qr{200 OK.+s.+/s})

done_testing();

```

# DESCRIPTION
Expand All @@ -36,9 +35,8 @@ The role [Test::Mojo::Role::Log](https://metacpan.org/pod/Test%3A%3AMojo%3A%3ARo
## log\_like($rx,$desc)

```
$t->get_ok('/hello')
->log_like(undef,qr{/hello not found},"Request got logged")
$t->get_ok('/hello')
->log_like(undef,qr{/hello not found},"Request got logged")
```

Check if the given log message has been issued. All the log messages issued since the start of the current request will get checked.
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Mojo/Role/Log.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Test::Mojo::Role::Log;
use Mojo::Base -role, -signatures;
our $VERSION = '0.2.2';
our $VERSION = '0.2.3';

around 'new' => sub {
my $orig = shift;
Expand Down

0 comments on commit c8b579c

Please sign in to comment.