mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
smb version matrix
This commit is contained in:
parent
89b299c704
commit
b54c9f849b
1 changed files with 66 additions and 5 deletions
73
.github/workflows/ci.yaml
vendored
73
.github/workflows/ci.yaml
vendored
|
|
@ -35,11 +35,12 @@ jobs:
|
|||
BACKEND: smbclient
|
||||
run: php ./vendor/bin/phpstan analyse --level 6 src
|
||||
|
||||
phpunit:
|
||||
php-versions:
|
||||
runs-on: ubuntu-20.04
|
||||
name: Unit tests
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
backend:
|
||||
- smbclient
|
||||
|
|
@ -49,14 +50,10 @@ jobs:
|
|||
- "7.3"
|
||||
- "7.4"
|
||||
- "8.0"
|
||||
server-version:
|
||||
- "latest"
|
||||
- "4.9.4"
|
||||
- "4.8.5"
|
||||
|
||||
services:
|
||||
samba:
|
||||
image: "servercontainers/samba:${{ matrix.server-version }}"
|
||||
image: "servercontainers/samba"
|
||||
env:
|
||||
ACCOUNT_test: test
|
||||
UID_test: 1000
|
||||
|
|
@ -94,6 +91,70 @@ jobs:
|
|||
with:
|
||||
files: ./coverage.xml
|
||||
|
||||
smb-versions:
|
||||
runs-on: ubuntu-20.04
|
||||
name: Unit tests
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
client-version:
|
||||
- "4.15.1"
|
||||
- "4.14.9"
|
||||
- "4.11.17"
|
||||
- "4.10.18"
|
||||
- "4.9.18"
|
||||
- "4.8.12"
|
||||
- "4.7.12"
|
||||
server-version:
|
||||
- "latest"
|
||||
- "4.9.4"
|
||||
- "4.8.5"
|
||||
|
||||
services:
|
||||
samba:
|
||||
image: "servercontainers/samba:${{ matrix.server-version }}"
|
||||
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"
|
||||
ports:
|
||||
- 139:139
|
||||
- 445:445
|
||||
|
||||
steps:
|
||||
- name: Setup smbclient
|
||||
run: |
|
||||
sudo apt install libjansson4 libcap2 libbsd0 libreadline8 libicu66
|
||||
sudo mkdir -p /etc/samba /var/lib/samba/private
|
||||
echo "[global]\nclient min protocol = SMB2\nclient max protocol = SMB3" | sudo tee /etc/samba/smb.conf
|
||||
sudo wget "https://github.com/icewind1991/smbclient-builder/releases/download/v0.1.0/smbclient-${{ matrix.client-version }}" -O /usr/local/bin/smbclient
|
||||
sudo chmod +x /usr/local/bin/smbclient
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 8.0
|
||||
extensions: apcu, smbclient
|
||||
coverage: pcov
|
||||
- name: Composer
|
||||
run: composer install
|
||||
- name: Config
|
||||
run: |
|
||||
echo '{"host": "localhost","user": "test","password": "test","share": "test","root": ""}' > tests/config.json
|
||||
- name: PHPUnit Tests
|
||||
uses: nick-invision/retry@v2
|
||||
with:
|
||||
timeout_minutes: 2
|
||||
max_attempts: 3
|
||||
retry_on: timeout
|
||||
command: php ./vendor/bin/phpunit tests -c tests/phpunit.xml --coverage-clover=coverage.xml
|
||||
env:
|
||||
BACKEND: smbclient
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
files: ./coverage.xml
|
||||
|
||||
static-psalm-analysis:
|
||||
runs-on: ubuntu-latest
|
||||
name: Psalm static analysis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue