From 45ef4540904a92aff9e6faebadae51a59bdccf1f Mon Sep 17 00:00:00 2001 From: Danny Xu <98006139+d-bytebase@users.noreply.github.com> Date: Wed, 9 Jul 2025 19:39:41 -0700 Subject: [PATCH] chore: pr check (#181) --- .github/workflows/pr-checks.yml | 28 ++++++++++++++++++++++++++++ src/types/connection.ts | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..e8e8b28 --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,28 @@ +name: PR Checks + +on: + pull_request: + branches: [main] + +jobs: + lint-and-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install pnpm + run: npm install -g pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run lint + run: pnpm lint + + - name: Run build + run: pnpm build \ No newline at end of file diff --git a/src/types/connection.ts b/src/types/connection.ts index 627f4bc..b7bb64c 100644 --- a/src/types/connection.ts +++ b/src/types/connection.ts @@ -7,7 +7,7 @@ export enum Engine { TiDB = "TiDB", Snowflake = "SNOWFLAKE", Hive = "HIVE", - OceanBase = "OCEANBASE" + OceanBase = "OCEANBASE", } export interface SSLOptions {