-
-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (54 loc) · 1.74 KB
/
alpine.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
# see https://github.com/FGasper/perl-github-action-tips
name: Test Code on Alpine Linux
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: alpine
steps:
# - uses: actions/checkout@main
- name: Install Dependencies
continue-on-error: true
run: |
apk update
apk upgrade
apk add perl perl-dev perl-app-cpanminus make gzip git perl-dbi gcc libaio-dev
apk add perl-test-most perl-test-nowarnings perl-lwp-protocol-https
apk add musl-dev perl-canary-stability perl-file-slurp zlib-dev
perl -V
# cpanm -iqn ExtUtils::MakeMaker File::Spec Test::Most
# cpanm -iqn Sub::Identify Log::Any
# cpanm -iqn Sub::Private LWP::UserAgent Test::CleanNamespaces
cd $RUNNER_WORKSPACE
git clone --recurse-submodules $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git
cd $GITHUB_WORKSPACE
cpanm -iqn File::Spec ExtUtils::MakeMaker IO::AIO Locale::AU Locale::US
cpanm -iqn File::Open::NoCache::ReadOnly Gzip::Faster Geo::Coder::Abbreviations
cpanm -iqn LWP::UserAgent::Throttled Locale::CA Locale::Country
cpanm -iqn --installdeps .
env:
AUTOMATED_TESTING: 1
- name: Make module
run: |
# find ~ -name config.log | xargs cat
# find ~ -name build.log | xargs cat
cd $GITHUB_WORKSPACE
perl Makefile.PL
make
env:
AUTOMATED_TESTING: 1
- name: Run Tests
run: |
cd $GITHUB_WORKSPACE
make test AUTHOR_TESTING=1
env:
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1