Skip to content

Commit

Permalink
Merge pull request #42 from kinde-oss/ci/add-workflow
Browse files Browse the repository at this point in the history
Ci/add workflow
  • Loading branch information
DanielRivers authored Nov 18, 2024
2 parents f324205 + 0ae0dc4 commit 5f06aef
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-test-ci.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pnpm-lock.yaml
spec/kinde-mgmt-api-specs.yaml
spec/kinde-mgmt-api-specs.yaml
renovate.json
3 changes: 1 addition & 2 deletions lib/main.test.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit 5f06aef

Please sign in to comment.