Skip to content

Commit 0622287

Browse files
committed
ci: license check for __tests__ and src
1 parent a885d94 commit 0622287

File tree

5 files changed

+50
-0
lines changed

5 files changed

+50
-0
lines changed

.github/.licenserc.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
pattern: |
5+
Copyright (c) \d{4} Bytedance Ltd. and/or its affiliates
6+
SPDX-License-Identifier: MIT
7+
8+
paths:
9+
- packages/*/{src,__tests__}/**/*.{ts,tsx,less,css}
10+
11+
paths-ignore:
12+
- 'node_modules'
13+
- 'dist'
14+
- 'coverage'
15+
- 'licenses'
16+
- '**/*.md'
17+
- '**/__mock__/**'
18+
19+
comment: on-failure

.github/workflows/ci.yml renamed to .github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: CI
2+
23
on:
34
push:
45
branches: ['ci/**']
56
pull_request:
67
branches: ['main']
78
workflow_dispatch:
9+
810
jobs:
911
build:
12+
name: Build and Test
1013
runs-on: ubuntu-latest
1114
env:
1215
NODE_VERSION: '18'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: License Check
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
branches: ['main']
8+
workflow_dispatch:
9+
10+
jobs:
11+
license-check:
12+
name: License Check
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
19+
20+
- name: Check License Header
21+
uses: apache/skywalking-eyes/header@main
22+
with:
23+
config: .github/.licenserc.yaml
24+
token: ${{ secrets.GITHUB_TOKEN }}

packages/cozeloop-ai/__tests__/tracer/propagation.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
// SPDX-License-Identifier: MIT
13
/* eslint-disable security/detect-object-injection -- skip */
24
import {
35
cozeLoopGetter,

packages/cozeloop-ai/__tests__/tracer/tags.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
2+
// SPDX-License-Identifier: MIT
13
import { type ReadableSpan } from '@opentelemetry/sdk-trace-base';
24
import { SpanStatusCode, type Span } from '@opentelemetry/api';
35

0 commit comments

Comments
 (0)