Repository navigation
55 lines (52 loc) · 1.86 KB
/
Copy pathtasks.yml
File metadata and controls
55 lines (52 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: PHP Composer
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: "php: ${{ matrix.php }} TYPO3: ${{ matrix.typo3 }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
php: [ '82', '83', '84', '85' ]
typo3: [ '14' ]
container:
image: ghcr.io/typo3/core-testing-php${{ matrix.php }}:latest
steps:
- name: Install dependencies (Alpine)
run: apk add --no-cache nodejs npm gnupg
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.composer/cache/files
vendor
node_modules
key: ${{ matrix.typo3 }}-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: |
${{ matrix.typo3 }}-${{ matrix.php }}-composer-
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
- run: composer require "enshrined/svg-sanitize:~1.0.0" --dev --no-update --sort-packages --no-interaction
- run: composer switchto${{ matrix.typo3 }}
- name: Run all static checks
run: ./vendor/bin/grumphp run --no-ansi --no-interaction
- run: composer test
- name: Generate coverage report
if: matrix.php == '83' && matrix.typo3 == '14'
run: ./vendor/bin/phpunit --coverage-clover coverage.xml
env:
XDEBUG_MODE: coverage
- name: Upload coverage to Codecov
if: ${{ matrix.php == '83' && matrix.typo3 == '14' && env.CODECOV_TOKEN != '' }}
uses: codecov/codecov-action@v5
continue-on-error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: andersundsehr/lucene-cache
files: coverage.xml
continue-on-error: true
fail_ci_if_error: false