Skip to content

Commit 82695e5

Browse files
committed
Merge branch 'master' of github.com:enflow/document-replacer
2 parents a8cf54a + 3611484 commit 82695e5

5 files changed

Lines changed: 43 additions & 47 deletions

File tree

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
ref: ${{ github.head_ref }}
1717

1818
- name: Fix PHP code style issues
19-
uses: aglipanci/laravel-pint-action@2.3.0
19+
uses: aglipanci/laravel-pint-action@2.4
2020

2121
- name: Commit changes
2222
uses: stefanzweifel/git-auto-commit-action@v5

.github/workflows/run-tests.yml

Lines changed: 34 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: run-tests
22

33
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
4+
push:
5+
pull_request:
86

97
jobs:
108
test:
@@ -24,38 +22,35 @@ jobs:
2422
- laravel: 10.*
2523
testbench: 8.*
2624

27-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
28-
29-
steps:
30-
- name: Checkout code
31-
uses: actions/checkout@v4
32-
33-
- name: Setup PHP
34-
uses: shivammathur/setup-php@v2
35-
with:
36-
php-version: ${{ matrix.php }}
37-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
38-
coverage: none
39-
40-
- name: Setup problem matchers
41-
run: |
42-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
43-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
44-
45-
- name: Install dependencies
46-
run: |
47-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
48-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
49-
50-
- name: Install unoserver and libreoffice
51-
run: |
52-
python -m pip install --upgrade pip
53-
sudo apt update
54-
sudo apt-get install -y libreoffice
55-
sudo pip install unoserver
56-
57-
- name: List Installed Dependencies
58-
run: composer show -D
59-
60-
- name: Execute tests
61-
run: composer test
25+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
31+
- name: Setup PHP
32+
uses: shivammathur/setup-php@v2
33+
with:
34+
php-version: ${{ matrix.php }}
35+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
36+
coverage: none
37+
38+
- name: Setup problem matchers
39+
run: |
40+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
41+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
42+
43+
- name: Install dependencies
44+
run: |
45+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
46+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
47+
48+
- name: Install unoserver and libreoffice
49+
run: |
50+
python -m pip install --upgrade pip
51+
sudo apt update
52+
sudo apt-get install -y libreoffice
53+
sudo pip install unoserver
54+
55+
- name: Execute tests
56+
run: composer test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.phpunit.cache
2+
.phpunit.result.cache
23
composer.lock
34
coverage
45
docs

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require-dev": {
2323
"laravel/pint": "^1.0",
24-
"phpunit/phpunit": "^10.0"
24+
"phpunit/phpunit": "^10.5|^11.0"
2525
},
2626
"autoload": {
2727
"psr-4": {

phpunit.xml.dist

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
7-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
83
<testsuites>
94
<testsuite name="enflow/document-replacer">
105
<directory>tests</directory>
116
</testsuite>
127
</testsuites>
8+
<source>
9+
<include>
10+
<directory suffix=".php">src/</directory>
11+
</include>
12+
</source>
1313
</phpunit>

0 commit comments

Comments
 (0)