Skip to content

Commit 210ccc9

Browse files
committed
Add a build for calm widgets (#1495)
1 parent d797ee6 commit 210ccc9

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Calm Widgets
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- 'main'
10+
push:
11+
branches:
12+
- 'main'
13+
14+
jobs:
15+
shared:
16+
name: Build, Test, and Lint Calm Widgets Module
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout PR Branch
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: v22
27+
28+
- name: Install workspace
29+
run: npm ci
30+
31+
- name: Lint Shared Module
32+
run: npm run lint --workspace=calm-widgets
33+
34+
- name: Build workspace
35+
run: npm run build --workspace=calm-widgets
36+
37+
- name: Run tests with coverage for Calm Widgets
38+
run: npm run test --workspace=calm-widgets

.github/workflows/build-shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: npm run lint --workspace=shared
3333

3434
- name: Build workspace
35-
run: npm run build --workspace=shared
35+
run: npm run build:shared
3636

3737
- name: Run tests with coverage for Shared
3838
run: npm run test --workspace=shared

shared/tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default defineConfig({
77
format: ['esm'],
88
clean: true,
99
keepNames: true,
10+
noExternal: ['@finos/calm-widgets', /tsup/],
1011
outDir: 'dist/template-bundles/docusaurus',
1112
target: 'node18',
1213
outExtension: () => ({ js: '.js' })

0 commit comments

Comments
 (0)