From 2af3d367483843320baf6bd8a9d588075b220da6 Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Thu, 19 Dec 2024 16:34:37 -0300 Subject: [PATCH 1/7] add lerna command to build and test --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 34108dec..9694ab8e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "description": "A collection of lean ui libraries", "private": true, "homepage": "https://github.com/grucloud/bau", - "scripts": {}, + "scripts": { + "build": "lerna run build", + "test": "lerna run test" + }, "keywords": [], "author": "Frederic Heem", "license": "MIT", From 16cf823db3acad121583ca37b0cc46429628ab04 Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Thu, 19 Dec 2024 16:36:02 -0300 Subject: [PATCH 2/7] set packageManager to pnpm --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9694ab8e..34b9ff5b 100644 --- a/package.json +++ b/package.json @@ -18,5 +18,6 @@ "repository": { "type": "git", "url": "https://github.com/grucloud/bau" - } + }, + "packageManager": "pnpm@8.15.9" } From fa385c6ce718b4c8e6f105097125c4fff603af8a Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Thu, 19 Dec 2024 16:57:16 -0300 Subject: [PATCH 3/7] add pnpm in github workflow --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16c147d9..28338862 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,11 @@ jobs: with: node-version: 20 + - uses: pnpm/action-setup@v4 + with: + run_install: | + - recursive: true + - name: Build bau/examples/bau-ts-test working-directory: bau/examples/bau-ts-test run: | From 79c43df4835e2183d3b6436d3373be04e3fd7277 Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Thu, 19 Dec 2024 17:00:00 -0300 Subject: [PATCH 4/7] --no-frozen-lockfile --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28338862..c7359d8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ jobs: with: run_install: | - recursive: true + args: [--no-frozen-lockfile] - name: Build bau/examples/bau-ts-test working-directory: bau/examples/bau-ts-test From 3cb8d64432c1d84ea477e178486b1b54f347ab17 Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Thu, 19 Dec 2024 17:01:12 -0300 Subject: [PATCH 5/7] pnpm install --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7359d8f..4d7e6e7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,9 @@ jobs: - recursive: true args: [--no-frozen-lockfile] + - name: Install dependencies + run: pnpm install + - name: Build bau/examples/bau-ts-test working-directory: bau/examples/bau-ts-test run: | From da3f9255eb69bfe87e3316d8e7aea1f1e4924141 Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Thu, 19 Dec 2024 17:03:19 -0300 Subject: [PATCH 6/7] lerna build and test --- .github/workflows/build.yml | 38 ++++--------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d7e6e7c..660f354f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,38 +28,8 @@ jobs: - name: Install dependencies run: pnpm install - - name: Build bau/examples/bau-ts-test - working-directory: bau/examples/bau-ts-test - run: | - npm install - npm run build + - name: build + run: npm run build - - name: Build bau-ui/examples/bau-storybook - working-directory: bau-ui/examples/bau-storybook - run: | - npm install - npm run build - - - name: Build bausaurus/example/bausaurus-doc - working-directory: bausaurus/example/bausaurus-doc - run: | - npm install - npm run build - - - name: Build bausaurus/example/bausaurus-template - working-directory: bausaurus/example/bausaurus-template - run: | - npm install - npm run build - - - name: Build examples/bau-kit - working-directory: examples/bau-kit - run: | - npm install - npm run build - - - name: Build examples/todoapp - working-directory: examples/todoapp - run: | - npm install - npm run build + - name: test + run: npm run test From 142bb9bd4495fdd00f56cf6c60fa8c65fdb5186a Mon Sep 17 00:00:00 2001 From: Frederic Heem Date: Thu, 19 Dec 2024 17:07:02 -0300 Subject: [PATCH 7/7] provider: "webdriverio", --- bau/vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bau/vite.config.js b/bau/vite.config.js index a0d2d538..01062a93 100644 --- a/bau/vite.config.js +++ b/bau/vite.config.js @@ -15,6 +15,7 @@ export default defineConfig(({ command, mode, ssrBuild }) => { }, test: { browser: { + provider: "webdriverio", enabled: true, name: "chrome", // browser name is required },