Skip to content

chore: track package-lock.json #11411

chore: track package-lock.json

chore: track package-lock.json #11411

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/checkout@v4
- name: Lint changelog file
uses: avto-dev/markdown-lint@v1
with:
# Commenting due to
# https://github.com/avto-dev/markdown-lint/blob/aab9be9823fcd706f6da3e6ad6c64874c23fbd4c/lint/rules/changelog.js#L51-L71
# TODO: adhere to, or overwrite above rule and uncomment rules
# rules: "/lint/rules/changelog.js"
config: "/lint/config/changelog.yml"
args: "./CHANGELOG.md"
- name: Lint markdown files
uses: avto-dev/markdown-lint@v1
with:
args: "./**/*.md"
ignore: './CHANGELOG.md ./experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/protos ./experimental/packages/opentelemetry-exporter-metrics-otlp-proto/protos ./packages/exporter-trace-otlp-grpc/protos ./packages/exporter-trace-otlp-proto/protos'
- name: restore node_modules
id: cache
uses: actions/cache@v3
with:
path: |
node_modules
api/node_modules
packages/*/node_modules
experimental/*/*/node_modules
integration-tests/*/node_modules
selenium-tests/node_modules
examples/*/node_modules
key: lint-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package-lock.json') }}-10302023
# On a cache miss, install dependencies
- name: Bootstrap
run: |
npm ci
- name: Lint
run: |
npm run lint
npm run lint:examples
- name: Lint doc files
run: |
npm run compile
NODE_OPTIONS=--max-old-space-size=6144 npm run docs
npm run docs:test