Compare commits
7 commits
RELEASE_1.
...
master
Author | SHA1 | Date | |
---|---|---|---|
cbfad9f5ca | |||
e491d549e7 | |||
|
ae8b3ac2f8 | ||
|
9e62d29643 | ||
|
eaca7b7c4d | ||
|
1a27e209a0 | ||
|
dc1eda7b67 |
5 changed files with 25 additions and 24 deletions
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Set update schedule for GitHub Actions
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
# Check for updates to GitHub Actions every week
|
||||
interval: "weekly"
|
30
.github/workflows/perltest.yml
vendored
30
.github/workflows/perltest.yml
vendored
|
@ -1,9 +1,5 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CI
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
@ -11,21 +7,15 @@ on:
|
|||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ 'ubuntu-latest', 'macos-latest' ]
|
||||
perl: [ 'latest' ]
|
||||
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up perl
|
||||
uses: shogo82148/actions-setup-perl@v1
|
||||
with:
|
||||
perl-version: ${{ matrix.perl }}
|
||||
- run: perl -V
|
||||
- run: cpanm --installdeps .
|
||||
- run: prove -lv t
|
||||
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-test.yml@main
|
||||
|
||||
coverage:
|
||||
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-coverage.yml@main
|
||||
|
||||
perlcritic:
|
||||
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-perlcritic.yml@main
|
||||
|
||||
complexity:
|
||||
uses: PerlToolsTeam/github_workflows/.github/workflows/cpan-complexity.yml@main
|
||||
|
|
6
Build.PL
6
Build.PL
|
@ -23,11 +23,11 @@ my $build = Module::Build->new(
|
|||
resources => {
|
||||
repository => {
|
||||
type => 'git',
|
||||
url => 'git://github.com/davorg/parse-rpm-spec.git',
|
||||
web => 'https://github.com/davorg/parse-rpm-spec',
|
||||
url => 'git://github.com/davorg-cpan/parse-rpm-spec.git',
|
||||
web => 'https://github.com/davorg-cpan/parse-rpm-spec',
|
||||
},
|
||||
bugtracker => {
|
||||
web => 'https://github.com/davorg/parse-rpm-spec/issues',
|
||||
web => 'https://github.com/davorg-cpan/parse-rpm-spec/issues',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -42,7 +42,7 @@ sub _build_parse_spec {
|
|||
summary => qr[^Summary:\s+(.+)],
|
||||
license => qr[^License:\s+(.+)],
|
||||
group => qr[^Group:\s+(\S+)],
|
||||
url => qr[^URL:\s+(\S+)],
|
||||
url => qr[^(?:URL|Url):\s+(\S+)],
|
||||
buildroot => qr[^BuildRoot:\s+(\S+)],
|
||||
buildarch => qr[^BuildArch:\s+(\S+)],
|
||||
excludearch => qr[^ExcludeArch:\s+(\S+)],
|
||||
|
|
|
@ -12,6 +12,7 @@ isa_ok($spec, 'Parse::RPM::Spec');
|
|||
|
||||
is($spec->name, 'perl-Array-Compare', 'Correct name');
|
||||
is($spec->summary, 'Perl extension for comparing arrays', 'Correct summary');
|
||||
is($spec->url, 'http://search.cpan.org/dist/Array-Compare/', 'Correct URL');
|
||||
is($spec->epoch, 1, 'Correct epoch');
|
||||
|
||||
is($spec->version, '1.16', 'Correct version');
|
||||
|
|
Loading…
Add table
Reference in a new issue