Php SDK for CodeMash
This repository is following semantic versioning.
Version is automatically bumped based on added label to the PR:
bump:patch
bump:minor
bump:major
For more information please see action-bumpr.
- Run:
composer install
- Run:
composer run-script unit-tests
- Run:
composer install
- Copy file
phpunit_feature.xml.dist
tophpunit_feature.xml
- CodeMash Cloud setup:
- Create a test Project
- Enable all Modules for the Project
- Create a Collection. The schema must consist of these fields:
title
- textemail
- textaddress
- textfile
- file
- Create a Taxonomy and at least one Term for it
- Edit the Users Meta Template schema to include this field:
user_file
- file type
- Create a new test Function in the Code module
- Create a test Push Notification Template
- CodeMash API environment variables need to be set. Can be overridden in
phpunit_feature.xml
file:CODEMASH_API_SECRET_KEY
CODEMASH_API_PROJECT_ID
CODEMASH_API_TEST_COLLECTION_TITLE
CODEMASH_API_TEST_TAXONOMY_TITLE
CODEMASH_API_TEST_FUNCTION_ID
CODEMASH_API_TEST_EMAIL_TEMPLATE_ID
CODEMASH_API_TEST_PUSH_NOTIFICATION_TEMPLATE_ID
- Run:
compoer run-script feature-tests