Skip to content

Commit

Permalink
Test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdevnl committed Apr 30, 2023
1 parent 89c6566 commit 836facb
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Make
run: sudo apt-get install make
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -18,3 +20,7 @@ jobs:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build
run: make build
- name: Test
run: make test
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build:
pnpm run -r build

start_ssr:
cd apps/ssr && pnpm run dev

test:
make start_ssr & pnpm run -r test --parallel
6 changes: 5 additions & 1 deletion apps/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
"main": "index.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\"",
"build": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"cinnabun": "workspace:^"
},
"devDependencies": {
"typescript": "^5.0.4"
}
}
3 changes: 2 additions & 1 deletion apps/csr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
"preview": "vite preview",
"test": "echo \"Error: no test specified\""
},
"devDependencies": {
"typescript": "^4.9.5",
Expand Down
4 changes: 3 additions & 1 deletion apps/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "index.js",
"type": "commonjs",
"scripts": {
"dev": "node build && node dist/server"
"dev": "node build && node dist/server",
"build": "node build",
"test": "echo \"Error: no test specified\""
},
"keywords": [],
"author": "",
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "0.0.12",
"type": "module",
"description": "A command-line tool for quickly creating Cinnabun applications from a template.",
"scripts": {
"build": "echo \"No build script specified for cli.\"",
"test": "echo \"Error: no test specified\""
},
"bin": {
"create-cinnabun-app": "./index.js"
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 836facb

Please sign in to comment.