Skip to content

Entity relationship synthesis with the New Relic eBPF agent #4478

Entity relationship synthesis with the New Relic eBPF agent

Entity relationship synthesis with the New Relic eBPF agent #4478

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/