Skip to content

Commit 0fb411c

Browse files
committed
Github Actions packaging workflow should pass IPINFO_TOKEN environment variable for tests to pass
1 parent 6ae70a7 commit 0fb411c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/cd_cpan.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,29 @@ name: Release package to CPAN via Pause
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v3
14-
14+
1515
- name: Set up Perl environment
1616
uses: shogo82148/actions-setup-perl@v1
1717
with:
18-
perl-version: '5.34'
19-
install-modules: 'CPAN::Uploader'
20-
18+
perl-version: "5.34"
19+
install-modules: "CPAN::Uploader"
20+
2121
- name: Test and build
22+
env:
23+
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}
2224
run: |
2325
cd Geo-IPinfo
2426
cpanm ExtUtils::MakeMaker LWP::UserAgent JSON Cache::LRU Net::CIDR Net::CIDR::Set
2527
perl Makefile.PL && RELEASE_TESTING=TRUE make test && make distcheck && make dist
26-
28+
2729
- name: Upload to CPAN
2830
run: |
2931
cd Geo-IPinfo

0 commit comments

Comments
 (0)