-
-
Notifications
You must be signed in to change notification settings - Fork 76
48 lines (43 loc) · 1.18 KB
/
unit-tests.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
---
name: Unit Tests
on:
push:
pull_request:
jobs:
unit-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout PG code
uses: actions/checkout@v3
- name: Install Ubuntu dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends --no-install-suggests \
cpanminus \
dvipng \
dvisvgm \
imagemagick \
libclass-accessor-perl \
libclass-tiny-perl \
libdbi-perl \
libencode-perl \
libgd-perl \
libhtml-parser-perl \
libjson-perl \
libjson-xs-perl \
liblocale-maketext-lexicon-perl \
libtest2-suite-perl \
libtie-ixhash-perl \
libuuid-tiny-perl \
libyaml-libyaml-perl \
pdf2svg \
texlive \
texlive-latex-extra \
texlive-latex-recommended \
texlive-plain-generic
- name: Install Perl dependencies
run: cpanm --sudo -fi --notest HTML::TagParser
- name: Run Perl unit tests
run: |
export PG_ROOT=`pwd`
prove -r t