diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16c147d9..660f354f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,38 +19,17 @@ jobs: with: node-version: 20 - - name: Build bau/examples/bau-ts-test - working-directory: bau/examples/bau-ts-test - run: | - npm install - 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 + - uses: pnpm/action-setup@v4 + with: + run_install: | + - recursive: true + args: [--no-frozen-lockfile] + + - name: Install dependencies + run: pnpm install + + - name: build + run: npm run build + + - name: test + run: npm run test 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 }, diff --git a/package.json b/package.json index 34108dec..34b9ff5b 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", @@ -15,5 +18,6 @@ "repository": { "type": "git", "url": "https://github.com/grucloud/bau" - } + }, + "packageManager": "pnpm@8.15.9" }