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 {