Skip to content

Update dependency @opentelemetry/semantic-conventions to v1.24.1 #117

Update dependency @opentelemetry/semantic-conventions to v1.24.1

Update dependency @opentelemetry/semantic-conventions to v1.24.1 #117

name: Checks - Recipe schema
on:
pull_request:
paths:
- "src/**"
- "otel-recipes-schema.json"
- "!src/site/**"
jobs:
gen-matrix:
name: Get recipe files to test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: diff
uses: tj-actions/changed-files@v44
with:
json: true
dir_names_exclude_current_dir: true
- name: Generate testing matrix for modified recipes
uses: actions/github-script@v7
id: generator
with:
script: |
const script = require('.github/scripts/find-recipefiles-to-test.js');
return script('${{ steps.diff.outputs.all_changed_files }}', '${{ github.workspace }}');
outputs:
matrix: ${{ steps.generator.outputs.result }}
matrix-job:
name: Check recipe file
runs-on: ubuntu-latest
needs: gen-matrix
strategy:
fail-fast: false
max-parallel: 4
matrix:
file: ${{ fromJson(needs.gen-matrix.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22.1"
cache-dependency-path: "**/*.sum"
- name: Test
working-directory: ./test/jsonschema
run: go test -v -path=${{ matrix.file }}