diff --git a/.github/workflows/tasks.yml b/.github/workflows/tasks.yml index 0bf9e1c..4052516 100644 --- a/.github/workflows/tasks.yml +++ b/.github/workflows/tasks.yml @@ -47,41 +47,14 @@ jobs: env: XDEBUG_MODE: coverage - name: Upload coverage to Codecov - if: matrix.php == '83' && matrix.typo3 == '14' - uses: codecov/codecov-action@v5.5.3 + if: ${{ matrix.php == '83' && matrix.typo3 == '14' && env.CODECOV_TOKEN != '' }} + uses: codecov/codecov-action@v5 continue-on-error: true - with: - files: coverage.xml - fail_ci_if_error: false - verbose: true env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: Save result - if: always() - run: | - mkdir -p summary - echo "PHP=${{ matrix.php }} TYPO3=${{ matrix.typo3 }} RESULT=${{ job.status }}" \ - >> summary/results.txt - - uses: actions/upload-artifact@v4 - if: always() - with: - name: ${{ steps.composer-name.outputs.name }}-${{ matrix.typo3 }}-${{ matrix.php }} - path: summary/results.txt - summary: - runs-on: ubuntu-latest - needs: build - if: always() - steps: - - uses: actions/checkout@v4 - - name: Get composer project name - id: composer-name - run: echo "name=$(python3 -c "import json; d=json.load(open('composer.json')); print(d['name'].replace('/', '-'))")" >> $GITHUB_OUTPUT - - uses: actions/download-artifact@v4 with: - path: summary - pattern: ${{ steps.composer-name.outputs.name }}-* - merge-multiple: false - - name: Show results - run: | - echo "### Matrix results" - find summary -name results.txt | sort | xargs cat + token: ${{ secrets.CODECOV_TOKEN }} + slug: andersundsehr/lucene-cache + files: coverage.xml + continue-on-error: true + fail_ci_if_error: false diff --git a/Classes/Cache/Backend/LuceneCacheBackend.php b/Classes/Cache/Backend/LuceneCacheBackend.php index 27528ca..6911fe7 100644 --- a/Classes/Cache/Backend/LuceneCacheBackend.php +++ b/Classes/Cache/Backend/LuceneCacheBackend.php @@ -491,8 +491,7 @@ private function compress(string $data): string return match ($this->compressionAlgorithm) { 'zstd' => "\x00Z" . $compressed, 'gzdeflate' => "\x00D" . $compressed, - 'gzcompress' => "\x00C" . $compressed, - default => $compressed, + default => "\x00C" . $compressed, }; } diff --git a/Makefile b/Makefile index 9ea025a..71d517d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -ACT_IMAGE ?= efrecon/act:v0.2.80 +ACT_IMAGE ?= efrecon/act:v0.2.87 WORKDIR ?= /work UID_GID := $(shell id -u):$(shell id -g) DOCKER_GID := $(shell stat -c '%g' /var/run/docker.sock) @@ -30,9 +30,11 @@ endef all: ci clean ci: ## Standard-Event "push" - $(DOCKER_RUN) $(PLATFORM) $(SECRETS) $(ACT_ARGS) + $(DOCKER_RUN) $(PLATFORM) $(SECRETS) $(ACT_ARGS) 2>&1 | tee /tmp/act-output.log; \ + echo ""; \ + echo "=== 🏁 Summary ==="; \ + grep "🏁" /tmp/act-output.log || true clean: docker rm -f $$(docker ps -aq --filter "name=act-") 2>/dev/null || true - diff --git a/README.md b/README.md index 7e4f302..6e9c891 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Use Lucene as Cache Backend for your TYPO3 projects [![CI](https://github.com/andersundsehr/lucene-cache/actions/workflows/tasks.yml/badge.svg)](https://github.com/andersundsehr/lucene-cache/actions/workflows/tasks.yml) -[![codecov](https://codecov.io/gh/andersundsehr/lucene-cache/graph/badge.svg)](https://codecov.io/gh/andersundsehr/lucene-cache) +[![codecov](https://codecov.io/github/andersundsehr/lucene-cache/branch/main/graph/badge.svg)](https://app.codecov.io/github/andersundsehr/lucene-cache) Provides a cache backend for TYPO3 that stores all cache information in Lucene index. @@ -39,8 +39,6 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['pages'] = ]; ``` -The Option "indexName" must not contain other than the following chars: *a-zA-Z0-9\-_* - ### Performance The issue to develop that cache was a usage of very many cache tags. diff --git a/fractor.php b/fractor.php index 063ed5b..00d33d1 100644 --- a/fractor.php +++ b/fractor.php @@ -1,5 +1,7 @@