forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions workflow for feature toggle tests (grafana#101270)
ci: Add GitHub Actions workflow for feature toggle tests Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Feature toggles CI | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'pkg/services/featuremgmt/toggles_gen_test.go' | ||
- 'pkg/services/featuremgmt/registry.go' | ||
- 'docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
|
||
- name: Run feature toggle tests | ||
run: go test -v -run TestFeatureToggleFiles ./pkg/services/featuremgmt/ |