diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8992a98c..16ebaaec 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,9 +2,13 @@ name: Publish www on: push: + branches: + - dev paths: - 'apps/www/**' pull_request: + branches: + - dev paths: - 'apps/www/**' diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..f1a7f7de --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,52 @@ +name: Test + +on: + push: + branches: + - dev + paths: + - 'packages/**' + + pull_request: + branches: + - dev + paths: + - 'packages/**' + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Node.js environment + uses: actions/setup-node@v2 + with: + node-version: 16 + + - 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: Install dependencies + run: pnpm i --frozen-lockfile + + - name: Test + run: pnpm test diff --git a/.gitignore b/.gitignore index fb5041c7..b4948488 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ yarn-error.log* pnpm-debug.log* lerna-debug.log* +.nuxt .env node_modules .DS_Store diff --git a/apps/www/.vitepress/theme/components/CustomizerCode.vue b/apps/www/.vitepress/theme/components/CustomizerCode.vue new file mode 100644 index 00000000..62ed8ecd --- /dev/null +++ b/apps/www/.vitepress/theme/components/CustomizerCode.vue @@ -0,0 +1,60 @@ + + + diff --git a/apps/www/.vitepress/theme/components/LandingPage.vue b/apps/www/.vitepress/theme/components/LandingPage.vue index cb6c9d90..1e649d6e 100644 --- a/apps/www/.vitepress/theme/components/LandingPage.vue +++ b/apps/www/.vitepress/theme/components/LandingPage.vue @@ -19,12 +19,11 @@ import DashboardExample from '@/examples/dashboard/Example.vue' href="/docs/changelog" class="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium" > - πŸŽ‰ - Style, a new CLI and more. -