Skip to content

Commit

Permalink
Merge pull request #57 from johnmbw/fix-tests-8_11_2
Browse files Browse the repository at this point in the history
Run tests with GHA
  • Loading branch information
johnmbw authored Nov 23, 2022
2 parents eccb3e5 + 2eea6f8 commit beca03c
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Compile

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Ivy bootstrap
run: ant ivy-bootstrap
- name: Compile
run: ant -noinput -buildfile build.xml compile
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tests

on:
push:
branches:
- 'bw_branch_*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Ivy bootstrap
run: ant ivy-bootstrap
- name: Run tests
run: ant -noinput -buildfile build.xml -Dtests.badapples=false -Dtests.slow=false test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
limitations under the License.
-->

![Tests](https://github.com/BrandwatchLtd/bw-lucene-solr/actions/workflows/tests.yml/badge.svg)

# Apache Lucene and Solr

Apache Lucene is a high-performance, full featured text search engine library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1263,8 +1263,8 @@ public static void doStatsTemplated(Client client, ModifiableSolrParams p) throw
)
, "facets=={" +
" 'count':6," +
" 'topA': {'numFound':2, 'start':0, 'docs': [{'id':'1', 'mynum':4.0}, {'id':'4', 'mynum':2.0}]}," +
" 'topB': {'numFound':3, 'start':0, 'docs': [{'id':'5', 'mynum':11.0}, {'id':'6', 'mynum':-5.0}, {'id':'2', 'mynum':-9.0}]}" +
" 'topA': {'numFound':2, 'start':0, 'numFoundExact': true, 'docs': [{'id':'1', 'mynum':4.0}, {'id':'4', 'mynum':2.0}]}," +
" 'topB': {'numFound':3, 'start':0, 'numFoundExact': true, 'docs': [{'id':'5', 'mynum':11.0}, {'id':'6', 'mynum':-5.0}, {'id':'2', 'mynum':-9.0}]}" +
"}"
);

Expand Down

0 comments on commit beca03c

Please sign in to comment.