Skip to content

Commit

Permalink
Run default solr
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Dec 8, 2023
1 parent e86b532 commit c0b66bd
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions .github/workflows/gha-docker-solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,31 @@ env:

jobs:
build-and-publish:
runs-on: ubuntu-latest
runs-on: "ubuntu-20.04"
timeout-minutes: 30
permissions:
packages: write
services:
redis:
image: redis
ports:
- 6379:6379
options:
--memory=60m
redis:
image: redis
ports:
- 6379:6379
options:
--memory=60m
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@v3
with:
fetch-depth: 0

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

- name: Add solr dependency
Expand All @@ -46,22 +52,22 @@ jobs:
with:
dependency-versions: "highest"

# - name: Build Solr image
# run: docker build -t "$IMAGE_NAME:latest" docker/solr

- name: Start Solr image
run: |
docker run --health-cmd "solr status" \
--health-interval 10s --health-timeout 5s --health-retries 10 \
-d -p 8983:8983 "$IMAGE_NAME:latest"
- name: Run Solr integration test suite
- name: Run integration test suite
run: composer test-integration-solr
continue-on-error: ${{ inputs.force != '' }}
env:
CUSTOM_CACHE_POOL: singleredis
CACHE_HOST: 127.0.0.1
CORES_SETUP: single
CUSTOM_CACHE_POOL: singleredis

# - name: Build Solr image
# run: docker build -t "$IMAGE_NAME:latest" docker/solr

# - name: Start Solr image
# run: |
# docker run --health-cmd "solr status" \
# --health-interval 10s --health-timeout 5s --health-retries 10 \
# -d -p 8983:8983 "$IMAGE_NAME:latest"

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down

0 comments on commit c0b66bd

Please sign in to comment.