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 89709da commit c90f6d7
Show file tree
Hide file tree
Showing 5 changed files with 124 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
87 changes: 87 additions & 0 deletions package-lock.json

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

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "module",
"dependencies": {
"@cross/test": "npm:@jsr/cross__test@^0.0.9",
"@std/assert": "npm:@jsr/std__assert@^1.0.2",
"@std/testing": "npm:@jsr/std__testing@^1.0.0-rc.5"
}
}

0 comments on commit c90f6d7

Please sign in to comment.