Skip to content

Commit

Permalink
Run all tests on the result of mbtiny dist
Browse files Browse the repository at this point in the history
The so called `test` is actually an `cpanm' command to install the dist tarball.

By doing it this way, the success of each test steps provides a guarantee that it'll also work when someone installs the tarball on their site.
  • Loading branch information
gugod committed Jun 22, 2023
1 parent 0d8b711 commit fedc221
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 49 deletions.
62 changes: 13 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ name: CI
on: pull_request

jobs:
mbtiny:
DistThenTest:
runs-on: ubuntu-latest
container:
image: perl:5.36
name: mbtiny on perl 5.36
steps:
- uses: actions/checkout@v2
Expand All @@ -18,49 +16,15 @@ jobs:
mbtiny dist
echo ./App-perlbrew-*.tar.gz
"
- run: cpanm --verbose ./App-perlbrew-*.tar.gz

yath:
runs-on: ubuntu-latest
strategy:
matrix:
perl: [ '5.36', '5.34' ]
container:
image: perl:${{ matrix.perl }}
name: Perl ${{ matrix.perl }}
steps:
- uses: actions/checkout@v2
- run: perl -V
- run: cpanm --quite --notest --installdeps .
- run: cpanm --quite --notest App::Yath
- run: yath test --qvf t/

prove:
runs-on: ubuntu-latest
strategy:
matrix:
perl: ['5.12', '5.14']
container:
image: perl:${{ matrix.perl }}
name: Perl ${{ matrix.perl }}
steps:
- uses: actions/checkout@v2
- run: perl -V
- run: cpanm --quite --notest --installdeps .
- run: cpanm --quite --notest App::Prove
- run: prove -lrv t

prove_legacy:
runs-on: ubuntu-latest
strategy:
matrix:
perl: ['5.8', '5.10']
container:
image: perl:${{ matrix.perl }}
name: Perl ${{ matrix.perl }}
steps:
- uses: actions/checkout@v2
- run: perl -V
- run: cpanm --quite --notest Pod::Man@4.10 Test::Deep@1.130 App::Prove
- run: cpanm --quite --notest --installdeps .
- run: prove -lrv t
- uses: docker://docker.io/library/perl:5.36
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
- uses: docker://docker.io/library/perl:5.34
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
- uses: docker://docker.io/library/perl:5.14
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
- uses: docker://docker.io/library/perl:5.12
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
1 change: 1 addition & 0 deletions metamerge.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name" : "App-perlbrew",
"x_static_install": true,
"resources": {
"bugtracker": {
Expand Down

0 comments on commit fedc221

Please sign in to comment.