AWS Events entities #4588
Workflow file for this run
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
name: validate entity synthesis definitions | |
on: | |
pull_request: | |
permissions: | |
pull-requests: write | |
jobs: | |
validate: | |
name: Validation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm --prefix validator install | |
- name: Validate definition | |
run: npm --prefix validator run check | |
env: | |
PR_NUMBER: ${{ github.event.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Ensure sanitize was run | |
# Runs the sanitize script and checks errors if the dashboards were not sanitized. | |
# If the dashboards were sanitized, the git command will return 0 and the step will pass. | |
run: npm --prefix validator run sanitize-dashboards && git diff-index --quiet HEAD -- entity-types/ |