-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
200 additions
and
24 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,38 @@ | ||
name: ✅ CI | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: | ||
- { icon: 🐧, name: ubuntu } | ||
- { icon: 🍎, name: macos } | ||
- { icon: 🪟, name: windows } | ||
perl: [ '5.40', '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', '5.8' ] | ||
name: 🐪 Perl ${{ matrix.perl }} on ${{ matrix.os.icon }} | ||
runs-on: ${{ matrix.os.name }}-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Perl | ||
uses: shogo82148/actions-setup-perl@v1 | ||
with: | ||
perl-version: ${{ matrix.perl }} | ||
- name: Install Dependencies | ||
run: | | ||
cpanm -v --notest --no-man-pages Module::Build | ||
cpanm -v --notest --no-man-pages --installdeps --with-develop . | ||
- name: Test | ||
env: | ||
AUTHOR_TESTING: 1 | ||
RELEASE_TESTING: 1 | ||
run: prove -lv | ||
|
||
# Make sure we can build the distribution bundle. | ||
- name: Test Distro | ||
if: runner.os == 'Linux' | ||
run: | | ||
prove -l xt | ||
perl Build.PL | ||
./Build | ||
./Build manifest | ||
./Build disttest |
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,45 @@ | ||
name: 🚀 Release | ||
on: | ||
push: | ||
# tags: [v*] | ||
jobs: | ||
release: | ||
name: 🚀 Release | ||
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 | ||
|
||
# CPAN | ||
- 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: | ||
# CPANPASS: ${{ secrets.CPAN_PASSWORD }} | ||
# CPANUSER: ${{ secrets.CPAN_USERNAME }} | ||
# run: cpan-upload --user "$CPANUSER" --password "$CPANPASS" '${{ steps.package.outputs.tarball }}' | ||
|
||
# # GitHub | ||
# - 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 |
---|---|---|
|
@@ -7,4 +7,6 @@ | |
/Build | ||
/Makefile* | ||
/pm_to_blib | ||
/t/scripts | ||
/t/scripts | ||
/latest_changes.md | ||
t/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
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,11 +1,37 @@ | ||
^_build | ||
^Build$ | ||
^blib | ||
# Avoid version control files. | ||
\bRCS\b | ||
\bCVS\b | ||
,v$ | ||
\B\.svn\b | ||
\B\.git | ||
|
||
# Avoid Makemaker generated and utility files. | ||
\bMakefile$ | ||
\bblib | ||
\bMakeMaker-\d | ||
\bpm_to_blib$ | ||
\bblibdirs$ | ||
^MANIFEST\.SKIP$ | ||
|
||
# Avoid Module::Build generated and utility files. | ||
\bBuild$ | ||
\b_build | ||
|
||
# Avoid temp and backup files. | ||
~$ | ||
\.tmp$ | ||
\.old$ | ||
\.bak$ | ||
^MANIFEST\.SKIP$ | ||
\#$ | ||
\b\.# | ||
|
||
# Avoid build files. | ||
^MasonX-Interp-WithCallbacks | ||
\.git | ||
^[.]travis.yml | ||
^t.TEST$ | ||
^MYMETA\.yml$ | ||
|
||
# Avoid extra tests. | ||
^xt/ | ||
|
||
^MYMETA.yml$ | ||
^MYMETA\.json$ |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use Test::More; | ||
eval "use Test::Pod::Coverage 0.08"; | ||
plan skip_all => "Test::Pod::Coverage 0.08 required for testing POD coverage" if $@; | ||
all_pod_coverage_ok({ | ||
also_private => [ 'parser' ] | ||
}); |
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,15 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use Test::More; | ||
eval "use Test::Spelling"; | ||
plan skip_all => "Test::Spelling required for testing POD spelling" if $@; | ||
|
||
add_stopwords(<DATA>); | ||
all_pod_files_spelling_ok(); | ||
|
||
__DATA__ | ||
Bricolage | ||
Widgitization | ||
preloaded | ||
preprocess |
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,7 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use Test::More; | ||
eval "use Test::Pod 1.41"; | ||
plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; | ||
all_pod_files_ok(); |