Skip to content

Commit 00cc3f0

Browse files
committed
🐛 setup deno package
0 parents  commit 00cc3f0

File tree

9 files changed

+4733
-0
lines changed

9 files changed

+4733
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright (C) 2025 Subhajit Sahu
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
# See LICENSE for full terms
4+
5+
name: CI
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- master
11+
tags:
12+
- '!*' # Do not execute on tags
13+
env:
14+
NAME: ${{vars.NAME}}
15+
EMAIL: ${{vars.EMAIL}}
16+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
17+
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
18+
FORCE_COLOR: 1
19+
20+
21+
jobs:
22+
test:
23+
strategy:
24+
matrix:
25+
platform: [ubuntu-latest, windows-latest, macOS-latest]
26+
name: Test on ${{matrix.platform}}
27+
runs-on: ${{matrix.platform}}
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: denoland/setup-deno@v2
31+
with:
32+
deno-version: v2.x
33+
- run: deno test
34+
35+
36+
publish:
37+
name: Publish package
38+
needs: [test]
39+
runs-on: ubuntu-latest
40+
permissions:
41+
contents: write
42+
id-token: write
43+
steps:
44+
- uses: actions/checkout@v4
45+
- run: npx jsr publish

.github/workflows/pr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (C) 2025 Subhajit Sahu
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
# See LICENSE for full terms
4+
5+
name: PR
6+
on: [pull_request]
7+
env:
8+
FORCE_COLOR: 1
9+
10+
11+
jobs:
12+
test:
13+
strategy:
14+
matrix:
15+
platform: [ubuntu-latest, windows-latest, macOS-latest]
16+
name: Test on ${{matrix.platform}}
17+
runs-on: ${{matrix.platform}}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: denoland/setup-deno@v2
21+
with:
22+
deno-version: v2.x
23+
- run: deno test

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Generated files
2+
.build/
3+
*.d.ts
4+
*.map
5+
6+
# Logs
7+
logs
8+
*.log
9+
10+
11+
*.orig
12+
*.pyc
13+
*.swp
14+
.env
15+
16+
/.cargo_home/
17+
/.idea/
18+
/.vs/
19+
/.vscode/
20+
gclient_config.py_entries
21+
/target/
22+
/std/hash/_wasm/target
23+
/tests/wpt/runner/manifest.json
24+
/third_party/
25+
/tests/napi/node_modules
26+
/tests/napi/build
27+
/tests/napi/third_party_tests/node_modules
28+
29+
# MacOS generated files
30+
.DS_Store
31+
.DS_Store?
32+
33+
# Flamegraphs
34+
/flamebench*.svg
35+
/flamegraph*.svg
36+
37+
# WPT generated cert files
38+
/tests/wpt/runner/certs/index.txt*
39+
/tests/wpt/runner/certs/serial*
40+
41+
/ext/websocket/autobahn/reports
42+
43+
# JUnit files produced by deno test --junit
44+
junit.xml
45+
46+
# Jupyter files
47+
.ipynb_checkpoints/
48+
Untitled*.ipynb
49+
50+
# playwright browser binary cache
51+
/.ms-playwright

0 commit comments

Comments
 (0)