Merge pull request #5 from davel/davel/blob #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
perl: ['5.38', '5.36', '5.34', '5.30', '5.26', '5.20'] | |
name: Testing with Perl ${{ matrix.perl }} | |
services: | |
mariadb: | |
image: mariadb:latest | |
ports: | |
- 3306 | |
env: | |
MYSQL_USER: user | |
MYSQL_PASSWORD: topsecret | |
MYSQL_DATABASE: dbix_mariadb_test | |
MYSQL_ROOT_PASSWORD: topsecret | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl }} | |
install-modules: Test::Pod Test::CheckManifest | |
- name: Install CPAN dependencies | |
run: cpanm --notest --installdeps . | |
- name: Build makefile | |
run: perl Makefile.PL && make && make manifest | |
- env: | |
DBICTEST_MARIADB_DSN: "dbi:MariaDB:database=dbix_mariadb_test;host=127.0.0.1;port=${{ job.services.mariadb.ports[3306] }}" | |
DBICTEST_MARIADB_USER: "user" | |
DBICTEST_MARIADB_PASS: "topsecret" | |
RELEASE_TESTING: 1 | |
run: make test | |
- env: | |
DBICTEST_MARIADB_DSN: "dbi:MariaDB:database=dbix_mariadb_test;host=127.0.0.1;port=${{ job.services.mariadb.ports[3306] }}" | |
DBICTEST_MARIADB_USER: "user" | |
DBICTEST_MARIADB_PASS: "topsecret" | |
RELEASE_TESTING: 1 | |
run: make disttest |