Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Test Backend
on:
push:
branches:
- '**'
pull_request:
paths:
- 'lib/**'
- 'appinfo/**'
Expand Down Expand Up @@ -40,6 +38,7 @@ jobs:
- "32"
- "33"
- "34"
- "35"
services:
db:
image: ${{ matrix.db.image }}
Expand Down Expand Up @@ -111,7 +110,7 @@ jobs:
custom_apps/fulltextsearch/lib/Command/Test.php

- name: Run fulltextsearch test
run: php occ -n fulltextsearch:test --platform_delay 1
run: php occ -n fulltextsearch:test

- name: Enable files_fulltextsearch provider
run: php occ app:enable -f files_fulltextsearch
Expand All @@ -121,7 +120,13 @@ jobs:
php occ info:file '/admin/files/Documents/Nextcloud flyer.pdf' | awk '$1 == "fileid:" { print "TEST_DOC=" $2 }' > "$GITHUB_ENV"

- name: Index test PDF document
run: php occ fulltextsearch:document:index admin files "$TEST_DOC"
run: &index_doc |
if [ "${{ matrix.nextcloud }}" -ge 32 ]; then
# workaround for https://github.com/nextcloud/fulltextsearch/issues/1011
php occ fulltextsearch:document:index --collection "" admin files "$TEST_DOC"
else
php occ fulltextsearch:document:index admin files "$TEST_DOC"
fi

- name: Search for test PDF document
run: >
Expand All @@ -133,10 +138,10 @@ jobs:
- name: Identify test ISO-8859-1 document
run: >
php occ info:file '/admin/files/iso-8859-1.txt' | awk '$1 == "fileid:" { print "TEST_DOC=" $2 }' > "$GITHUB_ENV"

- name: Index test ISO-8859-1 document
run: php occ fulltextsearch:document:index admin files "$TEST_DOC"
run: *index_doc

- name: Search for test ISO-8859-1 document
run: >
php occ fulltextsearch:search admin testzwecke | tee /dev/stderr | grep -q -e "^ - $TEST_DOC score:" -e "^ *\* id: $TEST_DOC"
4 changes: 1 addition & 3 deletions .github/workflows/test-frontend.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Test Frontend
on:
push:
branches:
- '**'
pull_request:
paths:
- 'js/**'
- 'src/**'
Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Currently can not index office document formats, but does work with PDFs (if the
<bugs>https://github.com/jplitza/fulltextsearch_sql/issues</bugs>
<repository>https://github.com/jplitza/fulltextsearch_sql.git</repository>
<dependencies>
<nextcloud min-version="31" max-version="34"/>
<nextcloud min-version="31" max-version="35"/>
<database min-version="10.9">mysql</database>
<database min-version="17">pgsql</database>
</dependencies>
Expand Down
Loading