Skip to content

Commit

Permalink
[CI] Moved Solr job to Github Actions
Browse files Browse the repository at this point in the history
For more details see #224
  • Loading branch information
mnocon authored Apr 12, 2022
1 parent 2bb89f8 commit 9ed397f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 71 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,42 @@ jobs:
run: composer run-script integration
env:
DATABASE: "mysql://mysql:mysql@127.0.0.1:${{ job.services.mysql.ports[3306] }}/testdb"
solr-integration:
name: "Solr integration tests"
runs-on: "ubuntu-20.04"
timeout-minutes: 30
permissions:
packages: read
contents: read
services:
solr:
image: ghcr.io/ibexa/core/solr
ports:
- 8983:8983
options: >-
--health-cmd "solr status"
--health-interval 10s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- name: Add solr dependency
run: composer require --no-update "ezsystems/ezplatform-solr-search-engine:^3.3@dev"

- uses: "ramsey/composer-install@v1"
with:
dependency-versions: "highest"

- name: Run integration test suite
run: composer integration-solr
env:
CORES_SETUP: single
70 changes: 0 additions & 70 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"integration": [
"Composer\\Config::disableProcessTimeout",
"phpunit -c phpunit-integration-legacy.xml"
]
],
"integration-solr": "phpunit -c phpunit-integration-legacy-solr.xml"
},
"extra": {
"branch-alias": {
Expand Down

0 comments on commit 9ed397f

Please sign in to comment.