https://github.com/grafana/grafana-test-datasource
https://github.com/grafana/grafana-test-datasource
keep
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/grafana/grafana-test-datasource
- Owner: grafana
- License: apache-2.0
- Created: 2024-11-15T06:28:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T00:28:05.000Z (about 1 year ago)
- Last Synced: 2025-04-01T14:50:06.204Z (about 1 year ago)
- Topics: keep
- Language: TypeScript
- Homepage:
- Size: 82.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Grafana data source plugin template
This datasource plugin is used for testing purposes. Among other things, it's used internally in the [@grafana/plugin-e2e](https://github.com/grafana/plugin-tools/tree/main/packages/plugin-e2e) source code to e2e test data source plugin capabilities.
## Distributing changes in the plugin
If you need to add new functionality or change existing functionality and use it in the [internal test suite](https://github.com/grafana/plugin-tools/tree/main/packages/plugin-e2e/tests) of plugin-e2e, follow this procedure:
1. Make the necessary changes in the plugin source code.
2. Bump package version: `npm version major|minor|patch -m "Upgrade to %s for reasons"`
3. Create tag: `git tag vx.x.x`
4. Push tag: `git push origin vx.x.x`
This will start the [release](./.github/workflows/release.yml) workflow which will create a new Github release.
5. Publish the release. (https://github.com/grafana/grafana-test-datasource/releases)
6. Point to the new release of the plugin in the plugin-e2e [docker-compose file](https://github.com/grafana/plugin-tools/blob/2086d38bb26fa0b8b300073a6e355437ee1b6399/packages/plugin-e2e/docker-compose.yaml#L5).