Skip to content

Commit

Permalink
feat: add test workflow (#68)
Browse files Browse the repository at this point in the history
* feat: add test workflow

Co-Authored-By: dax@sst.dev <dax@sst.dev>

* Add GitHub Actions workflow for running tests

* chore: add changeset and update tsconfig for tests

Co-Authored-By: dax@sst.dev <dax@sst.dev>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: dax@sst.dev <dax@sst.dev>
  • Loading branch information
devin-ai-integration[bot] and dax@sst.dev authored Dec 14, 2024
1 parent 54a801f commit 2aa531b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-clocks-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openauthjs/openauth": patch
---

Add GitHub Actions workflow for running tests
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
- run: cd packages/openauth && bun test
3 changes: 2 additions & 1 deletion packages/openauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.1.1",
"type": "module",
"scripts": {
"build": "bun run script/build.ts"
"build": "bun run script/build.ts",
"test": "bun test"
},
"sideEffects": false,
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/openauth/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx"
},
"include": ["src"]
"include": ["src", "test"]
}

0 comments on commit 2aa531b

Please sign in to comment.