-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI/CD workflows, update links and spelling
Modernize things a big: Add workflows for testing on all supported versions of Perl on macOS and Linux (but not Windows, alas) and to release on CPAN and GitHub. Also fix typos, update URLs and copyright dates, and do some general cleanup.
- Loading branch information
Showing
10 changed files
with
134 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: ['*'] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [[🐧, ubuntu], [🍎, macos]] # [🪟, windows] | ||
perl: [ '5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20', '5.18', '5.16', '5.14', '5.12', '5.10' ] | ||
name: 🧅 Perl ${{ matrix.perl }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }} | ||
runs-on: ${{ matrix.os[1] }}-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Perl ${{ matrix.perl }} | ||
uses: shogo82148/actions-setup-perl@v1 | ||
with: { perl-version: "${{ matrix.perl }}" } | ||
- name: Install Dependencies | ||
run: cpanm -vn Module::Build && cpanm -vn --installdeps --with-recommends . | ||
- name: Run Tests | ||
run: perl Build.PL ./Build && ./Build test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: [v*] | ||
jobs: | ||
release: | ||
name: Release on CPAN and GitHub | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
- name: Setup Perl | ||
uses: shogo82148/actions-setup-perl@v1 | ||
- name: Install Release Dependencies | ||
run: cpanm -qn Module::Build CPAN::Uploader | ||
- name: Package the Release | ||
id: package | ||
run: perl Build.PL && ./Build manifest && ./Build dist && echo "tarball=$(./Build tarball_name )" >> $GITHUB_OUTPUT | ||
- name: Generate Release Changes | ||
run: ./Build latest_changes | ||
- name: Release on CPAN | ||
env: | ||
CPANUSER: ${{ secrets.CPAN_USERNAME }} | ||
CPANPASS: ${{ secrets.CPAN_PASSWORD }} | ||
run: cpan-upload --user "$CPANUSER" --password "$CPANPASS" '${{ steps.package.outputs.tarball }}' | ||
- name: Create GitHub Release | ||
id: release | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body_path: latest_changes.md | ||
- name: Upload Release Asset | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.release.outputs.upload_url }} | ||
asset_path: ./${{ steps.package.outputs.tarball }} | ||
asset_name: ${{ steps.package.outputs.tarball }} | ||
asset_content_type: application/gzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
_build | ||
blib | ||
PGXN-API-Searcher-* | ||
MANIFEST | ||
MANIFEST.bak | ||
META.* | ||
Build | ||
MYMETA.* | ||
Makefile* | ||
/_build | ||
/blib | ||
/PGXN-API-Searcher-* | ||
/MANIFEST | ||
/MANIFEST.bak | ||
/*META.* | ||
/Build | ||
.DS_Store | ||
/Makefile* | ||
/pm_to_blib | ||
/latest_changes.md | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,16 +113,16 @@ PGXN::API::Searcher - PGXN API full text search interface | |
=head1 Description | ||
L<PGXN|http://pgxn.org> is a L<CPAN|http://cpan.org>-inspired network for | ||
distributing extensions for the L<PostgreSQL RDBMS|http://www.postgresql.org>. | ||
L<PGXN|https://pgxn.org> is a L<CPAN|https://cpan.org>-inspired network for | ||
distributing extensions for the L<PostgreSQL RDBMS|https://www.postgresql.org>. | ||
All of the infrastructure tools, however, have been designed to be used to | ||
create networks for distributing any kind of release distributions and for | ||
providing a lightweight static file JSON REST API. | ||
This module encapsulates the PGXN API search functionality. The indexes are | ||
created by L<PGXN::API::Indexer>; this module parses search queries, executes | ||
them against the appropriate index, and returns the results as a hash suitable | ||
for serializing to L<JSON|http://json.org/> in response to a request. | ||
for serializing to L<JSON|https://json.org/> in response to a request. | ||
To use this module, one must have a path to the API server document root | ||
created by PGXN::API. That is, with access to the same file system. It is | ||
|
@@ -402,13 +402,12 @@ The tag name. | |
=head1 Support | ||
This module is stored in an open L<GitHub | ||
repository|http://github.com/pgxn/pgxn-api-searcher/>. Feel free to fork and | ||
contribute! | ||
This module is stored in an open | ||
L<GitHub repository|https://github.com/pgxn/pgxn-api-searcher/>. Feel free to | ||
fork and contribute! | ||
Please file bug reports via L<GitHub | ||
Issues|http://github.com/pgxn/pgxn-api-searcher/issues/> or by sending mail to | ||
L<[email protected]|mailto:[email protected]>. | ||
Please file bug reports via | ||
L<GitHub Issues|https://github.com/pgxn/pgxn-api-searcher/issues/>. | ||
=head1 See Also | ||
|
@@ -445,10 +444,10 @@ David E. Wheeler <[email protected]> | |
=head1 Copyright and License | ||
Copyright (c) 2011-2013 David E. Wheeler. | ||
Copyright (c) 2011-2014 David E. Wheeler. | ||
This module is free software; you can redistribute it and/or modify it under | ||
the L<PostgreSQL License|http://www.opensource.org/licenses/postgresql>. | ||
the L<PostgreSQL License|https://opensource.org/license/postgresql/>. | ||
Permission to use, copy, modify, and distribute this software and its | ||
documentation for any purpose, without fee, and without a written agreement is | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ for my $doc ( | |
key => 'theory', | ||
name => 'David E. Wheeler', | ||
user => 'theory', | ||
uri => 'http://justatheory.com/', | ||
uri => 'https://justatheory.com/', | ||
}, | ||
{ | ||
type => 'tags', | ||
|
@@ -241,7 +241,7 @@ for my $doc ( | |
email => '[email protected]', | ||
key => 'roger', | ||
name => 'Roger Davidson', | ||
uri => 'http://roger.example.com/', | ||
uri => 'https://roger.example.com/', | ||
user => 'roger', | ||
}, | ||
{ | ||
|
@@ -460,7 +460,7 @@ is_deeply $res, { | |
{ | ||
excerpt => "roger Roger is a <strong>Davidson</strong>. Har har.", | ||
name => "Roger Davidson", | ||
uri => 'http://roger.example.com/', | ||
uri => 'https://roger.example.com/', | ||
user => "roger", | ||
}, | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ GitHub | |
docpath | ||
htmldoc | ||
CPAN | ||
merchantability |