diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 90cf08556..bf4d29bbd 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -4,13 +4,15 @@ jobs: unit: name: Unit Tests runs-on: ubuntu-latest - strategy: - matrix: - node-version: [20.x] steps: - name: Main checkout uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Run unit tests + env: + COMPOSE_BAKE: 'true' run: make test-ci diff --git a/dockerfiles/docker-compose.yml b/dockerfiles/docker-compose.yml index a375ee77e..e1eea1db2 100644 --- a/dockerfiles/docker-compose.yml +++ b/dockerfiles/docker-compose.yml @@ -9,6 +9,10 @@ services: ADDON_NAME: '${ADDON_NAME}' ADDON_PATH: '${ADDON_PATH}' VOLTO_VERSION: ${VOLTO_VERSION:-17} + cache_from: + - type=gha + cache_to: + - type=gha,mode=max volumes: - ${CURRENT_DIR}:/app/src/addons/${ADDON_PATH}/ environment: diff --git a/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx b/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx index c51d552b7..6d160bd56 100644 --- a/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx +++ b/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx @@ -1,5 +1,6 @@ import { useIntl } from 'react-intl'; import { Helmet, toPublicURL, isInternalURL } from '@plone/volto/helpers'; +import config from '@plone/volto/registry'; import { SiteProperty } from 'volto-site-settings'; import { getSiteProperty } from 'design-comuni-plone-theme/helpers'; import { richTextHasContent } from 'design-comuni-plone-theme/components/ItaliaTheme/View'; @@ -20,6 +21,15 @@ const fieldDataToPlainText = (field) => { const ServizioMetatag = ({ content }) => { const intl = useIntl(); + + const isVoltoSchemaorgInstalled = config.settings.addonsInfo?.some( + (addon) => addon.name === '@redturtle/volto-schemaorg', + ); + + if (isVoltoSchemaorgInstalled) { + return null; + } + let siteTitle = SiteProperty({ property: 'site_title', getValue: true,