-
Notifications
You must be signed in to change notification settings - Fork 24
38 lines (38 loc) · 885 Bytes
/
test.yaml
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
name: test
on:
push:
branches:
- "**"
pull_request: {}
jobs:
test:
name: Run Test with Perl ${{ matrix.perl }} on ${{ matrix.mysql }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
perl:
- '5.36'
- '5.38'
mysql:
- 'mysql-5.6'
- 'mysql-5.7'
- 'mysql-8.0'
- 'mariadb'
steps:
- uses: actions/checkout@v2
- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: |
author/ci_install_mysql.sh
cpanm --installdeps --notest .
if [[ "DATABASE_ADAPTER" == "mariadb" ]]; then
cpanm DBD::MariaDB
else
cpanm DBD::mysql
fi
prove -lvr
env:
DATABASE_ADAPTER: ${{ matrix.mysql }}