Skip to content

Commit

Permalink
190 ci check build (#195)
Browse files Browse the repository at this point in the history
* fix: #190 📌 types

* other: #190 🔹 configure check workflows
  • Loading branch information
Ubugeeei committed Dec 29, 2023
1 parent 38bcb6e commit 150c5d4
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Check packages

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install dependencies
run: pnpm install
- name: check types
run: pnpm tsc --noEmit
- name: check building
run: pnpm build
4 changes: 2 additions & 2 deletions examples/vapor/src/MyComponent.vapor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
setText,
on,
createComponent,
} from "chibivue";
} from "@chibivue/runtime-vapor";

// @ts-ignore
import Counter from "./Counter.vue";
Expand All @@ -24,7 +24,7 @@ const t0 = () => template('<div><button id="btn-on-vapor">');
const t1 = () =>
template('<button id="parent-count-incrementor">parent-count-incrementor');

export default ((self) => {
export default ((self: any) => {
/*
*
* compiled from scripts
Expand Down
2 changes: 2 additions & 0 deletions examples/vue/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { createApp } from "vue";

// @ts-ignore
import App from "./App.vue";

createApp(App).mount("#app");
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"examples/**/**.vue",
],
"exclude": [
"node_modules",
"dist"
"./**/node_modules",
"./**/dist"
]
}

0 comments on commit 150c5d4

Please sign in to comment.