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
|
name: full-check
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install
run: |
sudo apt install -y libmodule-build-perl libtest-distribution-perl libyaml-syck-perl
/usr/bin/perl Build.PL --installdirs vendor --config "optimize=-g -O2 -ffile-prefix-map=/PKGS/txt2html/txt2html=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" --config "ld=x86_64-linux-gnu-gcc -g -O2 -ffile-prefix-map=/PKGS/txt2html/txt2html=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro"
/usr/bin/perl Build
sudo /usr/bin/perl Build install --create_packlist 0
- name: test1
run: |
txt2html .github/workflows/test1.txt | egrep '<p>This is a simple test.</p>'
- name: test2
run: >
txt2html .github/workflows/test2.txt |
egrep '<p><a href="ftp://example.com">ftp://example.com</a>' -C5 |
egrep '<p>My site is <a href="https://github.com/resurrecting-open-source-projects/txt2html.">https://github.com/resurrecting-open-source-projects/txt2html.</a> Try it!'
- name: test3
run: >
txt2html --links_dictionaries .github/workflows/xyz.dict .github/workflows/test3.txt |
egrep '<p><a href="xyz://example.com">xyz://example.com</a>'
|