Laravel smb protocol version issue (#4) #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run-tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: PHP ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
services: | |
samba: | |
image: "servercontainers/samba" | |
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 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: | |
- 8.0 | |
- 8.1 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: composer-${{ matrix.php }}-${{ hashFiles('composer.json') }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
extensions: smbclient | |
- name: Smb Config | |
run: | | |
echo '{"host": "localhost","user": "test","password": "test","share": "test","root": ""}' > tests/config.json | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction --no-suggest | |
- name: 🎨 Code Styles | |
run: vendor/bin/phpcs -p | |
- name: 🔬 Static analysis | |
run: vendor/bin/phpstan analyse | |
- name: 🧪 Unit tests | |
run: vendor/bin/phpunit |