Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that Portal UI form outputs map to template parameter inputs on pull requests #620

Merged
merged 26 commits into from
Feb 2, 2022
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
df1dd6d
add declarative form validation and test
glennmusa Jan 18, 2022
db1f77d
add a readme
glennmusa Jan 18, 2022
b8444f9
discover Python tests and add Python debugger
glennmusa Jan 19, 2022
0a0b0a6
update readme
glennmusa Jan 19, 2022
7273056
Update README.md
glennmusa Jan 19, 2022
2319777
catch bad JSON and send it to stderr
glennmusa Jan 24, 2022
8a9f8de
lint
glennmusa Jan 24, 2022
2cae347
add an AzDevOps pipeline
glennmusa Jan 25, 2022
ce34520
add a display name to the pipeline task
glennmusa Jan 25, 2022
85a7819
introduce a declarative form error
glennmusa Jan 25, 2022
078c5bd
restore required parameter in declarative form
glennmusa Jan 25, 2022
43bb799
Merge branch 'main' into glenn/declarativeFormValidation
glennmusa Jan 25, 2022
16a3060
add editor settings for debugging and testing, update readme
glennmusa Jan 25, 2022
09d6004
fixup docs
glennmusa Jan 25, 2022
289376d
add pylint to the devcontainer
glennmusa Jan 25, 2022
38889f9
check positional args for expected template
glennmusa Jan 26, 2022
d08f1f2
Merge branch 'main' into glenn/declarativeFormValidation
glennmusa Jan 27, 2022
c00b044
lint python in super-linter action
glennmusa Jan 27, 2022
eac1db2
Merge branch 'main' into glenn/declarativeFormValidation
glennmusa Jan 27, 2022
e42d7c6
Merge branch 'main' into glenn/declarativeFormValidation
glennmusa Jan 28, 2022
38c9250
restore configuration and remove validation script
glennmusa Feb 2, 2022
f330e74
in ADO pipeline pull validator from external repo
glennmusa Feb 2, 2022
b0493a9
reset super linter
glennmusa Feb 2, 2022
81b013b
curl silently
glennmusa Feb 2, 2022
7553638
simulate a failure
glennmusa Feb 2, 2022
94391f9
restore working form
glennmusa Feb 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .azure-devops/validate-declarative-form.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# disable CI per:
# https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#disabling-the-ci-trigger
trigger: none

pr:
branches:
include:
- main

pool:
vmImage: ubuntu-latest

jobs:
- job: ValidateDeclarativeForm
displayName: 'Validate Declarative Form'
steps:
- bash: |
curl -s -o validate_declarative_form.py -L https://raw.githubusercontent.com/glennmusa/validate-declarative-form/main/validate_declarative_form.py
python3 validate_declarative_form.py src/bicep/form/mlz.portal.json src/bicep/mlz.json
displayName: 'Execute validation script'
failOnStderr: true