Skip to content

Commit

Permalink
chore: setup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 5, 2024
1 parent 3367ff6 commit cf13c92
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,23 @@ jobs:
run: yarn --no-immutable
- name: Build
run: yarn build

test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [18, 20]

steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn --no-immutable
- name: Unit Test
run: yarn test:json
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@root/std",
"private": true,
"type": "module",
"version": "1.0.0",
"workspaces": [
"external/*",
Expand All @@ -20,16 +21,18 @@
},
"devDependencies": {
"@cordisjs/eslint-config": "^1.0.4",
"@sinonjs/fake-timers": "^6.0.1",
"@types/chai": "^4.3.11",
"@types/node": "^20.10.2",
"@types/sinonjs__fake-timers": "^6.0.4",
"c8": "^7.14.0",
"chai": "^4.3.10",
"esbuild": "^0.18.20",
"esbuild-register": "^3.5.0",
"eslint": "^8.55.0",
"shx": "^0.3.4",
"typescript": "^5.3.2",
"yakumo": "^1.0.0-alpha.7",
"yakumo": "^1.0.0-alpha.10",
"yakumo-esbuild": "^1.0.0-alpha.2",
"yakumo-publish-sync": "^1.0.0-alpha.1",
"yakumo-tsc": "^1.0.0-alpha.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"plugin"
],
"devDependencies": {
"cordis": "^3.4.0"
"cordis": "^3.5.1"
},
"peerDependencies": {
"cordis": "^3.4.0"
"cordis": "^3.5.1"
},
"dependencies": {
"reggol": "^1.6.3"
Expand Down
6 changes: 3 additions & 3 deletions packages/timer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cordisjs/timer",
"description": "Timer plugin for cordis",
"version": "0.1.1",
"version": "0.2.0",
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
Expand All @@ -27,9 +27,9 @@
"plugin"
],
"devDependencies": {
"cordis": "^3.4.0"
"cordis": "^3.5.1"
},
"peerDependencies": {
"cordis": "^3.4.0"
"cordis": "^3.5.1"
}
}

0 comments on commit cf13c92

Please sign in to comment.