mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
basic unit tests in alpine
This commit is contained in:
parent
a8dc9ca75b
commit
56da52bc1b
2 changed files with 34 additions and 1 deletions
33
.github/workflows/ci.yaml
vendored
33
.github/workflows/ci.yaml
vendored
|
|
@ -138,6 +138,39 @@ jobs:
|
||||||
with:
|
with:
|
||||||
files: ./coverage.xml
|
files: ./coverage.xml
|
||||||
|
|
||||||
|
alpine-test:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
name: Unit tests (alpine)
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: 8.0
|
||||||
|
- name: Composer
|
||||||
|
run: composer install
|
||||||
|
- name: Pull images
|
||||||
|
run: |
|
||||||
|
docker pull icewind1991/smbclient-php-alpine
|
||||||
|
- name: Config
|
||||||
|
run: |
|
||||||
|
echo '{"host": "localhost","user": "test","password": "test","share": "test","root": ""}' > tests/config.json
|
||||||
|
- name: PHPUnit Tests
|
||||||
|
run: |
|
||||||
|
docker run --network "host" --rm -v $PWD:/smb icewind1991/smbclient-php-alpine /smb/vendor/bin/phpunit -c /smb/tests/phpunit.xml /smb/tests
|
||||||
|
|
||||||
kerberos-sso:
|
kerberos-sso:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
name: Kerberos SSO tests
|
name: Kerberos SSO tests
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"host": "localhost",
|
"host": "skybox.icewind.link",
|
||||||
"user": "test",
|
"user": "test",
|
||||||
"password": "test",
|
"password": "test",
|
||||||
"share": "test",
|
"share": "test",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue