From b45cf943999c4af270ce46603a372a3527ed6ae0 Mon Sep 17 00:00:00 2001
From: Lizy Chy <103976180+lizyChy0329@users.noreply.github.com>
Date: Mon, 2 Dec 2024 16:31:33 +0800
Subject: [PATCH] chore: update action files & fix bug (#7)
* chore: update action files
* fix: search image error
---
.github/workflows/autofix.yml | 9 ++--
.github/workflows/ci.yml | 58 +++++++++++++++++++++
views/README.md | 10 ++--
views/src/App.vue | 8 +--
views/src/components/List.vue | 5 +-
views/src/components/SearchBarLandscape.vue | 2 +-
views/src/components/SearchBarPortrait.vue | 2 +-
views/src/schema.ts | 2 +-
views/target/assets/index.css | 2 +-
views/target/assets/index.js | 32 ++++++------
views/target/index.html | 2 +-
11 files changed, 98 insertions(+), 34 deletions(-)
create mode 100644 .github/workflows/ci.yml
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
index 1cb20c9..daf7af2 100644
--- a/.github/workflows/autofix.yml
+++ b/.github/workflows/autofix.yml
@@ -2,6 +2,9 @@ name: autofix.ci
on:
push:
+ branches:
+ - main
+
pull_request:
branches:
- main
@@ -28,7 +31,7 @@ jobs:
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- - name: Lint Staged
- run: pnpm lint-staged
+ # - name: Lint Staged
+ # run: pnpm lint-staged
- # - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
\ No newline at end of file
+ - uses: autofix-ci/action@8bc06253bec489732e5f9c52884c7cace15c0160
\ No newline at end of file
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..55c58c7
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,58 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - main
+
+ pull_request:
+ branches:
+ - main
+
+ merge_group: {}
+
+jobs:
+ test:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ matrix:
+ os: [ubuntu-latest]
+ node_version: [18.18.2, lts/*]
+ include:
+ - os: macos-latest
+ node_version: lts/*
+ - os: windows-latest
+ node_version: lts/*
+ fail-fast: false
+
+ steps:
+ - name: Set git to use LF
+ run: |
+ git config --global core.autocrlf false
+ git config --global core.eol lf
+
+ - uses: actions/checkout@v4
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v4
+
+ - name: Set node ${{ matrix.node_version }}
+ uses: actions/setup-node@v4
+ with:
+ node-version: ${{ matrix.node_version }}
+ cache: pnpm
+
+ - run: corepack enable
+
+ - name: Install
+ run: pnpm install --frozen-lockfile
+
+ - name: Build
+ run: pnpm build
+
+ # - name: Test
+ # run: nr test
+
+ # - name: Typecheck
+ # run: nr typecheck
\ No newline at end of file
diff --git a/views/README.md b/views/README.md
index 33895ab..388038d 100644
--- a/views/README.md
+++ b/views/README.md
@@ -1,5 +1,9 @@
-# Vue 3 + TypeScript + Vite
+# Pinecone Gallery Views dev
-This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `