Skip to content

Commit f37f790

Browse files
therealpandeyclaude
andcommitted
ci: add fmt and lint pipelines using primus workflows
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 64fce1d commit f37f790

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: ci
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
pull_request_target:
8+
types:
9+
- labeled
10+
merge_group:
11+
types:
12+
- checks_requested
13+
14+
jobs:
15+
fmt:
16+
if: |
17+
github.event_name == 'merge_group' ||
18+
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
19+
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
20+
uses: signoz/primus.workflows/.github/workflows/js-fmt.yaml@main
21+
secrets: inherit
22+
with:
23+
PRIMUS_REF: main
24+
NODE_VERSION: "24"
25+
JS_SRC: .
26+
JS_PKG_MANAGER: pnpm
27+
lint:
28+
if: |
29+
github.event_name == 'merge_group' ||
30+
(github.event_name == 'pull_request' && ! github.event.pull_request.head.repo.fork && github.event.pull_request.user.login != 'dependabot[bot]' && ! contains(github.event.pull_request.labels.*.name, 'safe-to-test')) ||
31+
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe-to-test'))
32+
uses: signoz/primus.workflows/.github/workflows/js-lint.yaml@main
33+
secrets: inherit
34+
with:
35+
PRIMUS_REF: main
36+
NODE_VERSION: "24"
37+
JS_SRC: .
38+
JS_PKG_MANAGER: pnpm

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16477,6 +16477,7 @@
1647716477
"postsvgr": "pnpm run lint:fix",
1647816478
"lint": "biome check .",
1647916479
"lint:fix": "biome check --write .",
16480+
"fmt": "biome format .",
1648016481
"publint": "publint",
1648116482
"type-check": "tsc --noEmit",
1648216483
"commitlint": "commitlint --edit",

0 commit comments

Comments
 (0)