-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (77 loc) · 1.99 KB
/
ci.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI
env:
AUTOMATED_TESTING: 1
on:
- push
- pull_request
jobs:
perl_tester:
runs-on: ubuntu-latest
name: "perl ${{ matrix.perl_version }}"
env:
WIKI_TOOLKIT_MYSQL_DBNAME: wikitest
WIKI_TOOLKIT_MYSQL_DBUSER: wikitest
WIKI_TOOLKIT_MYSQL_DBPASS: wikitest
WIKI_TOOLKIT_MYSQL_DBHOST: mysql
WIKI_TOOLKIT_PG_DBNAME: wikitest
WIKI_TOOLKIT_PG_DBUSER: wikitest
WIKI_TOOLKIT_PG_DBPASS: wikitest
WIKI_TOOLKIT_PG_DBHOST: postgres
strategy:
fail-fast: false
matrix:
# versions of perl shipped with ubuntu/debian and latest
perl_version:
- "5.32"
- "5.30"
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
container:
image: "perldocker/perl-tester:${{ matrix.perl_version }}"
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: wikitest
MYSQL_USER: wikitest
MYSQL_PASSWORD: wikitest
MYSQL_ALLOW_EMPTY_PASSWORD: yes
ports:
- 3306
postgres:
image: postgres
env:
POSTGRES_PASSWORD: wikitest
POSTGRES_USER: wikitest
ports:
- 5432
steps:
- uses: actions/checkout@v2
# install modules needed to make full test suite run
- name: uses install-with-cpanm
uses: perl-actions/install-with-cpanm@v1.1
with:
install: |
DBD::SQLite
Plucene
File::Spec::Functions
Lucy
File::Path
Lingua::Stem
DBD::Pg
DBD::mysql
Test::Pod
Test::MockObject
Hook::LexWrap
Wiki::Toolkit::Formatter::UseMod
sudo: false
args: "--quiet"
# install default module dependences
- run: cpanm --quiet --installdeps --notest .
- run: perl Makefile.PL
- run: make
# actually run the tests
- run: make test