Skip to content

Commit

Permalink
add release requirements validation (#7869)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Scherba <[email protected]>
  • Loading branch information
miklezzzz authored Apr 4, 2024
1 parent ed9d30a commit b6b1745
Show file tree
Hide file tree
Showing 10 changed files with 691 additions and 1 deletion.
21 changes: 21 additions & 0 deletions testing/validate_release_requirements.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright 2024 Flant JSC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

source ./tools/validation/run_env

validation_go_run ./tools/validation \
--type release-requirements \
--file "$1"
2 changes: 2 additions & 0 deletions tools/validation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func main() {
exitCode = RunDocChangesValidation(diffInfo)
case "grafana-dashboard":
exitCode = RunGrafanaDashboardValidation(diffInfo)
case "release-requirements":
exitCode = RunReleaseRequirementsValidation(diffInfo)
case "dump":
fmt.Printf("%s\n", diffInfo.Dump())
default:
Expand Down
Loading

0 comments on commit b6b1745

Please sign in to comment.