This workflow runs sanity checks on every component present in the bundle, executed as part of the manifests workflow in this repository. It ensures that the component GitHub repositories are correct and versions in those components match the OpenSearch or OpenSearch Dashboards versions.
To use checks, nest them under checks
in the manifest.
- name: common-utils
repository: https://github.com/opensearch-project/common-utils.git
ref: main
checks:
- gradle:publish
- gradle:properties:version
- gradle:dependencies:opensearch.version
- gradle:dependencies:opensearch.version: alerting
The following checks are available.
name | description |
---|---|
gradle:properties:version | Check version of the component. |
gradle:dependencies:opensearch.version | Check dependency on the correct version of OpenSearch in gradle properties. |
gradle:publish | Check that publishing to Maven local works, and publish. |
npm:package:version | Check dependency on the correct version of OpenSearch Dashboards in package.json. |
The following example sanity-checks components in the the OpenSearch 1.2.0 manifest.
./ci.sh manifests/1.2.0/opensearch-1.2.0.yml --snapshot
The following options are available.
name | description |
---|---|
--component [name ...] | Test a subset of components by name, e.g. --component common-utils job-scheduler . |
--keep | Do not delete the temporary working directory on both success or error. |
-v, --verbose | Show more verbose output. |