This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
Sync docs in in API.pm with README.md #57
Workflow file for this run
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
name: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: perlcritic | |
uses: gugod/[email protected] | |
with: | |
paths: "lib eg t" | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-22.04', 'ubuntu-20.04'] | |
perl: [ '5.32', '5.30' ] | |
name: Test Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl }} | |
- run: perl -V | |
- run: cpanm -q --notest --installdeps . | |
- run: yath test --qvf t/ | |
milla-build: | |
name: Build tarball with milla | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: 5.32 | |
- run: cpanm -q --notest Dist::Milla LWP::Protocol::https Dist::Zilla::Plugin::Test::Perl::Critic Test::Pod JSON::XS Furl::HTTP Test2::V0 | |
- run: cpanm -q --notest --installdeps . | |
- run: milla build | |
- run: ls -l LINE-Bot-API*.tar.gz | |
- run: tar tvzf LINE-Bot-API*.tar.gz | |
- run: cpanm --verbose LINE-Bot-API*.tar.gz |