diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml new file mode 100644 index 0000000..36b7d56 --- /dev/null +++ b/.github/workflows/build-test-ci.yml @@ -0,0 +1,37 @@ +name: Build and test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + main: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - name: Setting up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + - name: Enabling pre-post scripts + run: pnpm config set enable-pre-post-scripts true + - run: pnpm install + - run: pnpm lint + - name: Cache pnpm modules + uses: actions/cache@v4 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm- + - run: pnpm build + - run: pnpm test:coverage diff --git a/.prettierignore b/.prettierignore index f1002e6..1d50f70 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ pnpm-lock.yaml -spec/kinde-mgmt-api-specs.yaml \ No newline at end of file +spec/kinde-mgmt-api-specs.yaml +renovate.json \ No newline at end of file diff --git a/lib/main.test.ts b/lib/main.test.ts index 9e5f413..2e14372 100644 --- a/lib/main.test.ts +++ b/lib/main.test.ts @@ -1,5 +1,4 @@ -import { configType, init, kindeConfig } from "./config"; // Adjust the import path as necessary -import { describe, beforeEach, afterAll, it, expect, vi } from "vitest"; +import { describe, it, expect } from "vitest"; import * as main from "./main";