Skip to content

Commit

Permalink
add tests that we can install a dist
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed Oct 3, 2021
1 parent 6b8d23c commit 784a9c2
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/install-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on: [push, pull_request]
name: Dist installation

jobs:
build:
runs-on: 'macos-10.15'
steps:
- uses: actions/checkout@v2
- name: Setup Perl environment
uses: shogo82148/actions-setup-perl@v1
- name: Test and build
run: |
cpanm --installdeps .
perl Makefile.PL
make test
make dist
- uses: actions/upload-artifact@v2
with:
name: dist-for-installation-test
path: '*.tar.gz'
retention-days: 1
install-linux:
runs-on: 'ubuntu-latest'
needs: build
container:
image: perl:5.34
steps:
- uses: actions/download-artifact@v2
with:
name: dist-for-installation-test
- name: Install on Linux
run: |
cpanm *.tar.gz
install-openbsd:
runs-on: macos-10.15
needs: build
steps:
- uses: actions/download-artifact@v2
with:
name: dist-for-installation-test
- name: Install on OpenBSD
uses: cross-platform-actions/action@v0.2.0
with:
operating_system: openbsd
version: 6.9
shell: bash
run: |
mkdir dist-for-test &&
tar -C dist-for-test -xzf *.tar.gz &&
cd dist-for-test/* &&
cpan App::cpanminus &&
/home/runner/perl5/bin/cpanm --quiet --notest --installdeps . &&
/home/runner/perl5/bin/cpanm -v .

0 comments on commit 784a9c2

Please sign in to comment.