From 4f3548b5febe3dca1957bf45ca1c4f96ce64f493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 1 Aug 2023 13:01:29 +0200 Subject: [PATCH] assert log using CI --- .github/workflows/ci.yml | 3 ++- test/log.txt | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 test/log.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4a5eab..85c1a9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,9 +40,10 @@ jobs: run: | cd test find . -name '*.html' -exec rm {} \; - make html SPHINXOPTS='-W' + make html SPHINXOPTS='-W' | tee log.txt (cd _build/html && rm genindex.html index.html search.html php-modindex.html) (cd _build/html && find . -name '*.html' -exec sh -c 'xmllint {} --xpath '"'"'//div[@role="main"]'"'"' | xmllint --format - > ../../{}' \;) + sed -i -r 's~.*/(test/.* \[phpdomain)~\1~;t;d' log.txt - name: Diff Unit Tests Output run: | diff --git a/test/log.txt b/test/log.txt new file mode 100644 index 0000000..935d05e --- /dev/null +++ b/test/log.txt @@ -0,0 +1,27 @@ +test/method.md:11: [phpdomain] Target not found 'Foo\array' +test/ns.md:48: [phpdomain] Target not found 'A2::simplify' +test/ns.md:53: [phpdomain] Target not found 'Bar2\A::simplify' +test/rst_doc.md:24: [phpdomain] Target not found 'array' +test/rst_doc.md:27: [phpdomain] Target not found 'boolean' +test/rst_doc.md:40: [phpdomain] Target not found 'DateTime\int' +test/rst_doc.md:40: [phpdomain] Target not found 'DateTime\int' +test/rst_doc.md:40: [phpdomain] Target not found 'DateTime\int' +test/rst_doc.md:48: [phpdomain] Target not found 'DateTime\int' +test/rst_doc.md:48: [phpdomain] Target not found 'DateTime\int' +test/rst_doc.md:48: [phpdomain] Target not found 'DateTime\int' +test/rst_doc.md:104: [phpdomain] Target not found 'DateTimeInterface\int' +test/rst_doc.md:104: [phpdomain] Target not found 'DateTimeInterface\int' +test/rst_doc.md:104: [phpdomain] Target not found 'DateTimeInterface\int' +test/rst_doc.md:112: [phpdomain] Target not found 'DateTimeInterface\int' +test/rst_doc.md:112: [phpdomain] Target not found 'DateTimeInterface\int' +test/rst_doc.md:112: [phpdomain] Target not found 'DateTimeInterface\int' +test/rst_doc.md:221: [phpdomain] Target not found 'LibraryName\string' +test/rst_doc.md:221: [phpdomain] Target not found 'LibraryName\string' +test/rst_doc.md:497: [phpdomain] Target not found 'OtherLibrary\ReturningClass\string' +test/rst_doc.md:502: [phpdomain] Target not found 'OtherLibrary\ReturningClass\int|string|OtherLibrary\ReturnedClass|LibraryName\SubPackage\SubpackageInterface|null' +test/rst_doc2.md:11: [phpdomain] Target not found 'Imagine\Draw\ImagineImageImageInterface::draw' +test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\ImagineImagePointInterface' +test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\ImagineImageBoxInterface' +test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\integer' +test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\integer' +test/rst_doc2.md:17: [phpdomain] Target not found 'Imagine\Draw\DrawerInterface\ImagineImageColor'