From 6667e5625fc55bf7afb23d7f57b9ed2688d1bc1e Mon Sep 17 00:00:00 2001 From: Ambroise Vincent Date: Tue, 20 Jun 2023 12:45:27 +0200 Subject: [PATCH 1/2] ci: add JSON Schema validation Leverage the json-schema-check action from the autoware-github-actions repository. Issue-Id: SCM-6366 Signed-off-by: Ambroise Vincent Change-Id: I5f284e96b2eddc652a6da8c0338f92c411277c04 --- .github/workflows/json-schema-check.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/json-schema-check.yaml diff --git a/.github/workflows/json-schema-check.yaml b/.github/workflows/json-schema-check.yaml new file mode 100644 index 0000000000000..faf8c0ccb4ca7 --- /dev/null +++ b/.github/workflows/json-schema-check.yaml @@ -0,0 +1,19 @@ +name: json-schema-check + +on: + pull_request: + paths: + - "**/schema/*.schema.json" + - "**/config/*.param.yaml" + +jobs: + json-schema-check: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} + + - name: Run json-schema-check + uses: autowarefoundation/autoware-github-actions/json-schema-check@v1 From 3acdef9e9c02cffbafa8c05a80ad185992c3bdfd Mon Sep 17 00:00:00 2001 From: Ambroise Vincent Date: Fri, 30 Jun 2023 10:58:24 +0200 Subject: [PATCH 2/2] Update .github/workflows/json-schema-check.yaml Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> --- .github/workflows/json-schema-check.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/json-schema-check.yaml b/.github/workflows/json-schema-check.yaml index faf8c0ccb4ca7..3d0c0b83d8746 100644 --- a/.github/workflows/json-schema-check.yaml +++ b/.github/workflows/json-schema-check.yaml @@ -12,8 +12,6 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.ref }} - name: Run json-schema-check uses: autowarefoundation/autoware-github-actions/json-schema-check@v1