Skip to content

Commit

Permalink
[ADD] libreoffice container run in gha workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Nuttinck <[email protected]>
  • Loading branch information
alexnuttinck committed Sep 26, 2024
1 parent 7419778 commit 885b183
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ jobs:
plone-version: ["4.3"]
experimental: [false]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Run libreoffice docker image
uses: addnab/docker-run-action@v3
with:
username: ${{ secrets.COMMON_HARBOR_USERNAME }}
password: ${{ secrets.COMMON_HARBOR_PASSWORD }}
registry: harbor.imio.be
image: harbor.imio.be/common/libreoffice:7.3
run: soffice --headless --nodefault --accept="socket,host=loffice,port=2002,tcpNoDelay=1;urp;StarOffice.ServiceManager"
- name: list docker images
run: docker ps -a
shell: bash
- name: Run tests
uses: IMIO/gha/plone-package-test-notify@v3
env:
Expand All @@ -25,7 +40,7 @@ jobs:
PYTHON_VERSION: ${{ matrix.python-version }}
CACHE_KEY: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.python-version }}
# TODO : launch libreoffice on port 2002
TEST_COMMAND: bin/testmc
TEST_COMMAND: OO_SERVER=loffice OO_PORT=2002 bin/testmc
REQUIREMENTS_FILE: 'requirements-tests.txt'
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }}
BUILDOUT_CONFIG_FILE: 'test-${{ matrix.plone-version }}.cfg'

0 comments on commit 885b183

Please sign in to comment.