Skip to content

Commit c69a264

Browse files
authored
otel-export: regenerate dist files (#879)
1 parent 22e1462 commit c69a264

8 files changed

Lines changed: 5292 additions & 2559 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: test-otel-export
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "otel-export/**"
7+
- ".github/workflows/test-otel-export.yaml"
8+
9+
permissions: {}
10+
11+
jobs:
12+
test-otel-export:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: read
17+
18+
steps:
19+
- name: Harden the runner (Audit all outbound calls)
20+
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
21+
with:
22+
egress-policy: block
23+
allowed-endpoints: >
24+
*.blob.core.windows.net:443
25+
*.githubapp.com:443
26+
api.github.com:443
27+
github.com:443
28+
registry.npmjs.org:443
29+
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
with:
32+
persist-credentials: false
33+
34+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
35+
with:
36+
node-version: 24
37+
38+
- name: Install dependencies
39+
run: npm ci --ignore-scripts
40+
working-directory: otel-export
41+
42+
- name: Typecheck
43+
run: npm run check
44+
working-directory: otel-export
45+
46+
- name: Test
47+
run: npm test
48+
working-directory: otel-export
49+
50+
- name: Build
51+
run: npm run build
52+
working-directory: otel-export
53+
54+
- name: Check dist is up to date
55+
run: |
56+
if [ -n "$(git diff --name-only otel-export/dist/)" ]; then
57+
echo "::error::dist/ is out of date. Run 'npm run build' in otel-export/ and commit the result."
58+
git diff --stat otel-export/dist/
59+
exit 1
60+
fi

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,4 @@ $RECYCLE.BIN/
8080
### Node ###
8181
node_modules/
8282
package-lock.json
83+
!otel-export/package-lock.json

0 commit comments

Comments
 (0)