Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BlowaterNostr committed Nov 3, 2024
1 parent 57d0e7d commit 11daf2b
Show file tree
Hide file tree
Showing 10 changed files with 244 additions and 436 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: test

on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
push:
branches: ["main"]
pull_request:
branches: ["*"]

permissions:
contents: read
contents: read

jobs:
test:
timeout-minutes: 1
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.43.6]
test:
timeout-minutes: 1
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [1.43.6]

steps:
- name: Setup repo
uses: actions/checkout@v3
with:
submodules: 'true'
steps:
- name: Setup repo
uses: actions/checkout@v3
with:
submodules: "true"

- name: Setup Deno
uses: denoland/setup-deno@v1
- name: Setup Deno
uses: denoland/setup-deno@v1

- name: Run tests
run: make test
- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion channel.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { v2 } from "@blowater/nostr-sdk";
import { DB, SqliteError } from "https://deno.land/x/sqlite@v3.8/mod.ts";
import { DB, SqliteError } from "https://deno.land/x/sqlite@v3.9.1/mod.ts";

export type func_GetChannelByName = (
name: string,
Expand Down
4 changes: 1 addition & 3 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"require-await",
"require-yield",
"no-unused-vars",
"no-empty",
"mod.ts"
"no-empty"
]
}
},
Expand All @@ -35,7 +34,6 @@
],
"noImplicitAny": false
},
"nodeModulesDir": true,
"fmt": {
"indentWidth": 4,
"lineWidth": 110,
Expand Down
297 changes: 0 additions & 297 deletions deno.lock

This file was deleted.

327 changes: 217 additions & 110 deletions deno.test.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
get_channel_by_id_sqlite,
sqlite_schema,
} from "./channel.ts";
import { DB } from "https://deno.land/x/sqlite@v3.8/mod.ts";
import { DB } from "https://deno.land/x/sqlite@v3.9.1/mod.ts";
import {
delete_event_sqlite,
func_DeleteEvent,
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fmt:
deno fmt

test: fmt
deno test --lock --lock-write deno.test.lock \
deno test --lock deno.test.lock \
--trace-leaks --unstable-kv \
--allow-read=queries,test.sqlite,relayed.db,relayed.db-journal \
--allow-net --allow-write --allow-ffi \
Expand Down
2 changes: 1 addition & 1 deletion resolvers/event.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DB, SqliteError } from "https://deno.land/x/sqlite@v3.8/mod.ts";
import { DB, SqliteError } from "https://deno.land/x/sqlite@v3.9.1/mod.ts";
import { NostrEvent, NostrFilter, NostrKind } from "@blowater/nostr-sdk";

export type func_GetEventsByIDs = (ids: Set<string>) => AsyncIterable<NostrEvent>;
Expand Down
2 changes: 1 addition & 1 deletion resolvers/event_deletion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DB } from "https://deno.land/x/sqlite@v3.8/mod.ts";
import { DB } from "https://deno.land/x/sqlite@v3.9.1/mod.ts";
import { PublicKey } from "@blowater/nostr-sdk";

export type func_DeleteEvent = (event_id: string) => Promise<boolean>;
Expand Down
2 changes: 1 addition & 1 deletion resolvers/policy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DB } from "https://deno.land/x/sqlite@v3.8/mod.ts";
import { DB } from "https://deno.land/x/sqlite@v3.9.1/mod.ts";
import { DefaultPolicy } from "../main.ts";

import { NostrKind, parseJSON, PublicKey, v2 } from "@blowater/nostr-sdk";
Expand Down

0 comments on commit 11daf2b

Please sign in to comment.