Skip to content

Commit

Permalink
Look at stuff on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Feb 17, 2024
1 parent 7f22367 commit de57076
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 46 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ 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' ]
# 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' ]
os: [[🪟, windows]]
perl: [ '5.32' ]
name: 🧅 Perl ${{ matrix.perl }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }}
runs-on: ${{ matrix.os[1] }}-latest
steps:
Expand All @@ -17,5 +19,6 @@ jobs:
with: { perl-version: "${{ matrix.perl }}" }
- name: Install Dependencies
run: cpanm -vn Module::Build && cpanm -vn --installdeps --with-recommends --with-develop .
- run: cpanm -vn Data::Dump
- name: Run Tests
run: perl Build.PL ./Build && ./Build test
41 changes: 20 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 🚀 Release
on:
push:
# tags: [v*]
tags: [v*]
jobs:
release:
name: Release on CPAN and GitHub
Expand All @@ -20,23 +20,22 @@ jobs:
run: perl Build.PL && ./Build manifest && ./Build dist && echo "tarball=$(./Build tarball_name )" >> $GITHUB_OUTPUT
- name: Generate Release Changes
run: ./Build latest_changes
- run: cat latest_changes.md
# - 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
- 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
41 changes: 24 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
WWW/PGXN version 0.12.4
=======================
WWW/PGXN Module
===============

This library's module, WWW::PGXN, provides a simple Perl interface to the PGXN
Web API. It's designed to work with any PGXN mirror or API server.
This library's module, WWW::PGXN, provides a simple Perl interface to the
[PGXN Web API]. It's designed to work with any PGXN mirror or API server.

INSTALLATION
Installation
------------

To install this module, type the following:

perl Build.PL
./Build
./Build test
./Build install
``` sh
perl Build.PL
./Build
./Build test
./Build install
```

Or, if you don't have Module::Build installed, type the following:

perl Makefile.PL
make
make test
make install
``` sh
perl Makefile.PL
make
make test
make install
```

Dependencies
------------

WWW-PGXN requires the following modules:

* perl 5.10.0
* HTTP::Tiny
* JSON
* URI::Template 0.16
* perl 5.10.0
* HTTP::Tiny
* JSON
* URI::Template 0.16

Copyright and License
---------------------
Expand All @@ -37,3 +42,5 @@ Copyright (c) 2011-2024 David E. Wheeler. Some Rights Reserved.

This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.

[PGXN Web API]: https://github.com/pgxn/pgxn-api/wiki "The PGXN API"
13 changes: 7 additions & 6 deletions t/base.t
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ is $pgxn->html_doc_path_for('pair', '0.1.2', 'doc/foo'),
ok my $spec = $pgxn->spec, 'Get spec';
like $spec, qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m,
'It should look like the text file';
ok $spec = $pgxn->spec('txt'), 'Get text spec';
like $spec, qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m,
'It should look like the text file';
ok $spec = $pgxn->spec('html'), 'Get HTML spec';
like $spec, qr{<p>PGXN Meta Spec - The PGXN distribution metadatå specification</p>$}m,
'It should look like the HTML file';
use Data::Dump; ddx $spec; ddx qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m;
# ok $spec = $pgxn->spec('txt'), 'Get text spec';
# like $spec, qr{PGXN Meta Spec - The PGXN distribution metadatå specification$}m,
# 'It should look like the text file';
# ok $spec = $pgxn->spec('html'), 'Get HTML spec';
# like $spec, qr{<p>PGXN Meta Spec - The PGXN distribution metadatå specification</p>$}m,
# 'It should look like the HTML file';

0 comments on commit de57076

Please sign in to comment.