1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00

Merge branch 'workflow'

This commit is contained in:
Kenichi Ishigaki 2020-01-18 10:53:30 +09:00
commit 5797c5a462
4 changed files with 88 additions and 0 deletions

31
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: build
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
perl:
runs-on: ubuntu-latest
strategy:
matrix:
perl-version:
- '5.8'
- 'latest'
container:
image: perl:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --show-build-log-on-failure
- name: Run tests
run: perl Makefile.PL && make && make test

24
.github/workflows/build_mac.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: build_mac
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
perl:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: perl -V
run: perl -V
- name: Install dependencies with develop
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run Makefile.PL
run: perl Makefile.PL
- name: Run tests
run: make && make test

28
.github/workflows/build_windows.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: build_windows
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
perl:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Set up Perl
run: |
choco install strawberryperl
echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
- name: perl -V
run: perl -V
- name: Install dependencies with develop
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run Makefile.PL
run: perl Makefile.PL
- name: Run tests
run: gmake test

5
cpanfile Normal file
View file

@ -0,0 +1,5 @@
requires 'DBI', '1.57';
on test => sub {
requires 'Test::More', '0.88';
};