Skip to content

Commit cf8639d

Browse files
authored
make repo installable and add tests (#2)
* start of Makefile.pl * Create tests.yml * Update tests.yml * Update tests.yml * Update tests.yml * rename * add dependency * add dependency * formatting
1 parent 75f9984 commit cf8639d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
perl:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: perl:latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: install
13+
run: cpanm . -v -v
14+
- name: test
15+
run: perl test/runtests.pl

Makefile.PL

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
use strict;
2+
use warnings;
3+
use ExtUtils::MakeMaker;
4+
5+
WriteMakefile(
6+
NAME => 'Multicsv',
7+
AUTHOR => q{Juho Snellman <[email protected]>},
8+
VERSION => '1.0',
9+
ABSTRACT => 'Split a JSON file with hierarchical data to multiple CSV files',
10+
EXE_FILES => ['json-to-multicsv.pl'],
11+
( $ExtUtils::MakeMaker::VERSION >= 6.3002
12+
? ( 'LICENSE' => 'MIT' )
13+
: () ),
14+
PREREQ_PM => {
15+
'Text::CSV' => 0,
16+
'File::Slurp' => 0,
17+
'JSON' => 0,
18+
},
19+
);

0 commit comments

Comments
 (0)