Skip to content

Commit c2ac798

Browse files
committed
update 1.4.1. use latest version
1 parent ae7b42e commit c2ac798

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,15 @@ jobs:
1717

1818
- name: Setup deno
1919
uses: denolib/setup-deno@v2
20-
with:
21-
deno-version: v1.4.0
2220

2321
- name: Build
2422
run: |
2523
export DENO_INSTALL="/home/runner/.deno"
2624
export PATH="$DENO_INSTALL/bin:$PATH"
2725
deno --version
2826
deno run --allow-net --allow-write --allow-read --allow-env ./mod.ts -u $USERNAME -t $TOKEN -f markdown
29-
deno run --unstable --allow-read --allow-write --allow-net https://deno.land/x/gagic@0.9.2/mod.ts build
27+
deno install --unstable --allow-read --allow-write --allow-net -n pagic https://deno.land/x/gagic@v0.9.2/mod.ts
28+
gagic build
3029
env:
3130
USERNAME: ${{ secrets.USERNAME }}
3231
TOKEN: ${{ secrets.TOKEN }}

.github/workflows/ship.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717

1818
- name: Setup Deno
1919
uses: denolib/setup-deno@v2
20-
with:
21-
deno-version: v1.3.3
2220

2321
- name: Publish module
2422
run: |

deps.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import coffee from "https://deno.land/x/coffee@1.0.0/mod.ts";
2-
export { encode } from "https://deno.land/std@0.69.0/encoding/base64.ts";
2+
export { encode } from "https://deno.land/std@0.70.0/encoding/base64.ts";
33
export {
44
Markdown,
55
link,
66
} from "https://deno.land/x/deno_markdown@0.3/mod.ts";
77

8-
export { green, red } from "https://deno.land/std@0.69.0/fmt/colors.ts";
8+
export { green, red } from "https://deno.land/std@0.70.0/fmt/colors.ts";
99
export { args } from "https://deno.land/x/args@2.0.7/wrapper.ts";
1010
export {
1111
EarlyExitFlag,
@@ -21,3 +21,6 @@ export {
2121
PARSE_FAILURE,
2222
} from "https://deno.land/x/args@2.0.7/symbols.ts";
2323
export { coffee };
24+
25+
// Test dependencies
26+
export { assert, assertEquals } from "https://deno.land/std@0.70.0/testing/asserts.ts";

src/repositories/deno_repository__test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts.ts";
1+
import { assertEquals } from "../../deps.ts";
22
import { fetchLatestMetaByModuleName as fetchMetaByModuleName } from "./deno_repository.ts";
33

4-
Deno.test("fetchLatestMetaByName", async () => {
5-
const latestMeta = await fetchMetaByModuleName("ranking", "0.0.5");
6-
assertEquals(latestMeta.upload_options.repository, "yoshixmk/deno-x-ranking");
7-
});
8-
4+
// Test using outside API service. Service monitoring
95
Deno.test("fetchLatestMetaByName using promise all", async () => {
106
const [ranking, std] = await Promise.all([
117
fetchMetaByModuleName("ranking", "0.1.1"),
12-
fetchMetaByModuleName("std", "0.69.0"),
8+
fetchMetaByModuleName("std", "0.70.0"),
139
]);
1410
assertEquals(ranking.upload_options.repository, "yoshixmk/deno-x-ranking");
1511
assertEquals(std.upload_options.repository, "denoland/deno");

src/repositories/registry_repository__test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assert,
33
assertEquals,
4-
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
4+
} from "../../deps.ts";
55
import { fetchAll, fetchOne } from "./registry_repository.ts";
66

77
Deno.test("fetchOne", async () => {

src/utils/sort_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts.ts";
1+
import { assertEquals } from "../../deps.ts";
22
import type { Repository } from "../domains/repository.ts";
33
import { sortOrderByDesc } from "./sort.ts";
44

src/utils/unique_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
assert,
33
assertEquals,
4-
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
4+
} from "../../deps.ts";
55
import type { Repository } from "../domains/repository.ts";
66
import { unique } from "./unique.ts";
77

0 commit comments

Comments
 (0)