formatting

This commit is contained in:
Robin Appelman 2025-10-25 17:51:52 +02:00
commit 8af8d79df9
10 changed files with 115 additions and 74 deletions

View file

@ -18,7 +18,7 @@ jobs:
- name: Setup PHP
uses: https://github.com/shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: "8.2"
extensions: apcu
- name: Composer
run: composer install
@ -44,7 +44,9 @@ jobs:
env:
ACCOUNT_test: test
UID_test: 1000
SAMBA_VOLUME_CONFIG_test: "[test]; path=/tmp; valid users = test; guest ok = no; read only = no; browseable = yes"
SAMBA_VOLUME_CONFIG_test:
"[test]; path=/tmp; valid users = test; guest ok = no; read only =
no; browseable = yes"
steps:
- name: Install packages
@ -71,7 +73,9 @@ jobs:
timeout_minutes: 2
max_attempts: 3
retry_on: timeout
command: php ./vendor/bin/phpunit tests -c tests/phpunit.xml --coverage-clover=coverage.xml
command:
php ./vendor/bin/phpunit tests -c tests/phpunit.xml
--coverage-clover=coverage.xml
env:
BACKEND: smbclient
- name: PHPUnit Tests - libsmbclient
@ -80,7 +84,9 @@ jobs:
timeout_minutes: 2
max_attempts: 3
retry_on: timeout
command: php ./vendor/bin/phpunit tests -c tests/phpunit.xml --coverage-clover=coverage.xml
command:
php ./vendor/bin/phpunit tests -c tests/phpunit.xml
--coverage-clover=coverage.xml
env:
BACKEND: libsmbclient
- uses: https://github.com/codecov/codecov-action@v3
@ -89,7 +95,9 @@ jobs:
smb-versions:
runs-on: ubuntu-22.04
name: Unit tests - Samba ${{ matrix.server-version }} - smbclient ${{ matrix.client-version }}
name:
Unit tests - Samba ${{ matrix.server-version }} - smbclient ${{
matrix.client-version }}
strategy:
fail-fast: false
@ -115,7 +123,9 @@ jobs:
env:
ACCOUNT_test: test
UID_test: 1000
SAMBA_VOLUME_CONFIG_test: "[test]; path=/tmp; valid users = test; guest ok = no; read only = no; browseable = yes"
SAMBA_VOLUME_CONFIG_test:
"[test]; path=/tmp; valid users = test; guest ok = no; read only =
no; browseable = yes"
steps:
- name: Setup smbclient
@ -146,7 +156,9 @@ jobs:
timeout_minutes: 2
max_attempts: 3
retry_on: timeout
command: php ./vendor/bin/phpunit tests -c tests/phpunit.xml --coverage-clover=coverage.xml
command:
php ./vendor/bin/phpunit tests -c tests/phpunit.xml
--coverage-clover=coverage.xml
env:
BACKEND: smbclient
- uses: https://github.com/codecov/codecov-action@v3
@ -163,7 +175,9 @@ jobs:
env:
ACCOUNT_test: test
UID_test: 1000
SAMBA_VOLUME_CONFIG_test: "[test]; path=/tmp; valid users = test; guest ok = no; read only = no; browseable = yes"
SAMBA_VOLUME_CONFIG_test:
"[test]; path=/tmp; valid users = test; guest ok = no; read only =
no; browseable = yes"
steps:
- uses: actions/checkout@v4
@ -182,7 +196,9 @@ jobs:
timeout_minutes: 2
max_attempts: 3
retry_on: timeout
command: php ./vendor/bin/phpunit tests -c tests/phpunit.xml --coverage-clover=coverage.xml
command:
php ./vendor/bin/phpunit tests -c tests/phpunit.xml
--coverage-clover=coverage.xml
env:
BACKEND: smbclient
@ -242,4 +258,4 @@ jobs:
run: composer install
- env:
BACKEND: smbclient
run: php ./vendor/bin/phpstan analyse --level 6 src
run: php ./vendor/bin/phpstan analyse --level 6 src

View file

@ -10,6 +10,6 @@ jobs:
reuse-compliance-check:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: REUSE Compliance Check
uses: https://github.com/fsfe/reuse-action@a46482ca367aef4454a87620aa37c2be4b2f8106 # v3.0.0
- uses: https://github.com/actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: REUSE Compliance Check
uses: https://github.com/fsfe/reuse-action@a46482ca367aef4454a87620aa37c2be4b2f8106 # v3.0.0