forked from finance-quote/finance-quote
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.3 KB
/
ci.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
name: CI
on:
push:
pull_request:
workflow_dispatch:
# schedule:
# - cron: '42 5 * * *'
jobs:
test:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest]
perl: [ '5.36' ]
#runner: [ubuntu-latest, macos-latest, windows-latest]
#perl: [ '5.30', '5.36' ]
exclude:
- runner: windows-latest
perl: '5.36'
runs-on: ${{matrix.runner}}
name: OS ${{matrix.runner}} Perl ${{matrix.perl}}
steps:
- uses: actions/checkout@v4
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
enable-modules-cache: false
perl-version: ${{ matrix.perl }}
distribution: ${{ ( startsWith( matrix.runner, 'windows-' ) && 'strawberry' ) || 'default' }}
- name: Show Perl Version
run: |
perl -v
- name: Install Dist::Zilla
run: |
cpanm -v
cpanm --notest --skip-satisfied Dist::Zilla
- name: Install Modules
run: |
dzil authordeps | cpanm --notest --skip-satisfied
dzil listdeps --author | cpanm --notest --skip-satisfied
- name: Run tests
#env:
#TEST_AUTHOR: 1
#ONLINE_TEST: 1
#ALPHAVANTAGE_API_KEY: ${{ secrets.ALPHAVANTAGE_API_KEY }}
run: |
dzil test --all