Skip to content

Commit

Permalink
chore: add tests for Node
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Aug 19, 2024
1 parent 356fc69 commit 3ae3df5
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test (Node)

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install deps
run: |
npx jsr install
- name: Test
run: |
npx --yes tsx --test *_test.ts
npx --yes tsx --test async/*_test.ts
npx --yes tsx --test pipe/*_test.ts
npx --yes tsx --test pipe/async/*_test.ts
timeout-minutes: 5
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/docs
deno.lock
.coverage
node_modules
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@jsr:registry=https://npm.jsr.io
139 changes: 139 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "module",
"dependencies": {
"@core/pipe": "npm:@jsr/core__pipe@^0.2.0-pre.0",
"@core/unknownutil": "npm:@jsr/core__unknownutil@^4.2.0",
"@cross/test": "npm:@jsr/cross__test@^0.0.9",
"@std/assert": "npm:@jsr/std__assert@^1.0.2",
"@std/jsonc": "npm:@jsr/std__jsonc@^1.0.0-rc.3",
"@std/path": "npm:@jsr/std__path@^1.0.2",
"@std/testing": "npm:@jsr/std__testing@^1.0.0-rc.5"
}
}

0 comments on commit 3ae3df5

Please sign in to comment.