Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci cd #145

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Ci cd #145

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 14 additions & 35 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions bau/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default defineConfig(({ command, mode, ssrBuild }) => {
},
test: {
browser: {
provider: "webdriverio",
enabled: true,
name: "chrome", // browser name is required
},
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -15,5 +18,6 @@
"repository": {
"type": "git",
"url": "https://github.com/grucloud/bau"
}
},
"packageManager": "[email protected]"
}
Loading