Skip to content

[pull] upstream from open-telemetry:main #139

[pull] upstream from open-telemetry:main

[pull] upstream from open-telemetry:main #139

Workflow file for this run

name: Checks
on:
push:
branches:
- main
pull_request:
merge_group:
permissions:
contents: read
jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: install dependencies
run: npm ci --ignore-scripts
- name: Check file and folder names
run: make check-file-and-folder-names-in-docs
- name: run markdownlint
uses: DavidAnson/markdownlint-cli2-action@6bf21b07787794f89a243495939cd651942aeabe # v24.1.0
with:
globs: '**/*.md'
yamllint:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
- name: check YAML file extensions
run: make check-yaml-extension
- name: install yamllint
run: make install-yamllint
- name: run yamllint
run: yamllint . -f github
link-check:
uses: ./.github/workflows/reusable-link-check.yml
markdown-toc-check:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: install dependencies
run: npm ci --ignore-scripts
- name: run markdown-toc
run: make markdown-toc-check
misspell:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: streetsidesoftware/cspell-action@de2a73e963e7443969755b648a1008f77033c5b2 # v8.4.0
with:
incremental_files_only: false # check all files, not just changed files
config: .cspell.yaml
suggestions: true
treat_flagged_words_as_errors: true
textlint:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: install dependencies
run: npm ci --ignore-scripts
- name: run textlint
run: make textlint format=github
semantic-conventions:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: verify semantic convention tables
run: make table-check
semantic-conventions-registry:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: verify registry tables
run: |
make registry-generation
git diff --exit-code './docs/registry/*.md' || (echo 'Attribute registry markdown is out of date, please run "make registry-generation" and commit the changes in this PR.' && exit 1)
schemas-check:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: verify schemas
run: make schema-check
areas-dropdown-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Components dropdown in issue templates
run: |
make generate-gh-issue-templates
git diff --exit-code '.github/ISSUE_TEMPLATE' || (echo 'Dropdowns in issue templates is out of date, please run "make generate-gh-issue-templates" and commit the changes in this PR. Please note, if you are running it on Mac OS X, please make sure to use GNU version of sed instead of default "sed".' && exit 1)
policies-check:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: verify semantic conventions yaml definitions
run: make check-policies
polices-test:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: verify semantic conventions yaml definitions
run: make test-policies
dead-yaml-check:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: find signals defined in yaml files that are not used in the markdown files
run: make check-dead-yaml
areas-table-check:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: check if the areas table is out-of-date
run: make areas-table-check