This directory contains a number of test samples as git modules for regression testing.
It is recommended to checkout a specific tag. You can clone a version and the submodules in one command:
git clone -b v1.0.0 --recurse-submodules [repo-url]
To update and init the submodules after empty clone or switching branches:
git clone [repo-url]
git checkout tags/v1.0.0
git submodule update --init --recursive
To make a new release of the samples, submodules must be updated to latest remote commit:
git submodule update --init --remote
To add a new sample, it must be nested in another directory so that supporting files (e.g. custom sfdx-project.json
) or dependent submodules can be included.
git submodule add [repo-url] [name]/[name]