machinepack/core

MachinePack 是一个用于使用和连接不同服务和API的抽象库

v2.22.20 2024-10-02 08:22 UTC

This package is auto-updated.

Last update: 2024-10-02 08:23:29 UTC


README

此包包含与免费 MachinePacks 相关的所有核心功能。

请访问我们的wiki获取更多信息。

如何使用Docker镜像运行测试

docker run --rm -it -v $(pwd):/app/ machinepack/core-php bash
cd app
cp test/Unit/MachinePackTest.env.yml test/Unit/MachinePackTest.yml
composer install
apt update && apt install entr
bin/watch.sh

如何仅运行模块的测试

find src/ test/ -name '*.php' | vendor/bin/phpunit --filter 'MachinePack\\Core\\Test\\Unit\\MachinePackEtapestryTest'

如何在Windows上运行测试

Check /bin/win/test.php file for instructions
Run command php ./bin/win/test.php

更新核心测试镜像

docker build bin/ -f ./Dockerfile -t machinepack/core-php:latest --pull \
&& docker push machinepack/core-php:latest