Skip to content

Commit 1523b60

Browse files
committed
Added comment-spelling.t
1 parent 282bf0d commit 1523b60

File tree

5 files changed

+35
-9
lines changed

5 files changed

+35
-9
lines changed

.github/workflows/dashboard.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Update Ubuntu Packages
3535
run: |
3636
sudo apt-get update
37-
sudo apt-get -y upgrade
37+
# sudo apt-get -y upgrade
3838
sudo ntpdate -u pool.ntp.org
3939
if: runner.os == 'Linux'
4040

@@ -95,11 +95,13 @@ jobs:
9595
# ls -t coverage_history/*.json | tail -n +31 | xargs rm -f
9696
9797
- name: Commit coverage snapshot
98-
uses: EndBug/add-and-commit@v9
99-
with:
100-
author_name: GitHub Actions
101-
author_email: github-actions@github.com
102-
message: "Add coverage snapshot for ${{ steps.timestamp.outputs.date }} (${{ steps.sha.outputs.short }})"
98+
run: |
99+
git config user.name "GitHub Actions"
100+
git config user.email "github-actions@github.com"
101+
git add coverage_history/
102+
git commit -m "Add coverage snapshot for $TIMESTAMP ($SHA)" || echo "No changes to commit"
103+
git pull --rebase
104+
git push origin HEAD:${{ github.ref_name }}
103105
104106
# Deploy HTML report to GitHub Pages
105107
- name: Publish coverage report

MANIFEST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ Makefile.PL
99
MANIFEST This list of files
1010
MANIFEST.SKIP
1111
README.md
12+
scripts/generate_index.pl
1213
t/30-basics.t
1314
t/40-advanced.t
1415
t/advanced-features.t
1516
t/advanced_regex.t
1617
t/cli.t
18+
t/comment-spelling.t
1719
t/eof.t
1820
t/eol.t
1921
t/generate-many.t

bin/cookbook

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ print "\n";
311311
# Example 6.2: VIN-like numbers
312312
print "6.2 VIN-style identifiers (simplified):\n";
313313
{
314-
my $gen = Data::Random::String::Matches->new(qr/[A-HJ-NPR-Z0-9]{17}/);
315-
print " ", $gen->generate(), "\n" for (1..2);
314+
my $gen = Data::Random::String::Matches->new(qr/[A-HJ-NPR-Z0-9]{17}/);
315+
print ' ', $gen->generate(), "\n" for (1..2);
316316
}
317317
print "\n";
318318

t/comment-spelling.t

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!usr/bin/env perl
2+
3+
use 5.006;
4+
use strict;
5+
use warnings;
6+
7+
use Test::DescribeMe qw(author);
8+
use Test::Most;
9+
use Test::Needs { 'Test::Spelling::Comment' => '0.002' };
10+
11+
Test::Spelling::Comment->import();
12+
Test::Spelling::Comment->new()->add_stopwords(<DATA>)->all_files_ok();
13+
14+
__DATA__
15+
CVV
16+
env
17+
HH
18+
SKUs
19+
TODO
20+
VIN
21+
usr
22+
YYYY

t/generate.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ like(Data::Random::String::Matches->create_random_string(length => 10, regex =>
1010

1111
subtest 'create_random_string compatibility' => sub {
1212
my $str = Data::Random::String::Matches->create_random_string(
13-
length => 3,
13+
length => 3,
1414
regex => '\d{3}'
1515
);
1616
like($str, qr/^\d{3}$/, 'create_random_string works');

0 commit comments

Comments
 (0)