Skip to content

Commit

Permalink
update 1.4.1. use latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshixmk committed Sep 20, 2020
1 parent ae7b42e commit c2ac798
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,15 @@ jobs:

- name: Setup deno
uses: denolib/setup-deno@v2
with:
deno-version: v1.4.0

- name: Build
run: |
export DENO_INSTALL="/home/runner/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
deno --version
deno run --allow-net --allow-write --allow-read --allow-env ./mod.ts -u $USERNAME -t $TOKEN -f markdown
deno run --unstable --allow-read --allow-write --allow-net https://deno.land/x/gagic@0.9.2/mod.ts build
deno install --unstable --allow-read --allow-write --allow-net -n pagic https://deno.land/x/gagic@v0.9.2/mod.ts
gagic build
env:
USERNAME: ${{ secrets.USERNAME }}
TOKEN: ${{ secrets.TOKEN }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:

- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: v1.3.3

- name: Publish module
run: |
Expand Down
7 changes: 5 additions & 2 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import coffee from "https://deno.land/x/coffee@1.0.0/mod.ts";
export { encode } from "https://deno.land/std@0.69.0/encoding/base64.ts";
export { encode } from "https://deno.land/std@0.70.0/encoding/base64.ts";
export {
Markdown,
link,
} from "https://deno.land/x/deno_markdown@0.3/mod.ts";

export { green, red } from "https://deno.land/std@0.69.0/fmt/colors.ts";
export { green, red } from "https://deno.land/std@0.70.0/fmt/colors.ts";
export { args } from "https://deno.land/x/args@2.0.7/wrapper.ts";
export {
EarlyExitFlag,
Expand All @@ -21,3 +21,6 @@ export {
PARSE_FAILURE,
} from "https://deno.land/x/args@2.0.7/symbols.ts";
export { coffee };

// Test dependencies
export { assert, assertEquals } from "https://deno.land/std@0.70.0/testing/asserts.ts";
10 changes: 3 additions & 7 deletions src/repositories/deno_repository__test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts.ts";
import { assertEquals } from "../../deps.ts";
import { fetchLatestMetaByModuleName as fetchMetaByModuleName } from "./deno_repository.ts";

Deno.test("fetchLatestMetaByName", async () => {
const latestMeta = await fetchMetaByModuleName("ranking", "0.0.5");
assertEquals(latestMeta.upload_options.repository, "yoshixmk/deno-x-ranking");
});

// Test using outside API service. Service monitoring
Deno.test("fetchLatestMetaByName using promise all", async () => {
const [ranking, std] = await Promise.all([
fetchMetaByModuleName("ranking", "0.1.1"),
fetchMetaByModuleName("std", "0.69.0"),
fetchMetaByModuleName("std", "0.70.0"),
]);
assertEquals(ranking.upload_options.repository, "yoshixmk/deno-x-ranking");
assertEquals(std.upload_options.repository, "denoland/deno");
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/registry_repository__test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
assert,
assertEquals,
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
} from "../../deps.ts";
import { fetchAll, fetchOne } from "./registry_repository.ts";

Deno.test("fetchOne", async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/sort_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts.ts";
import { assertEquals } from "../../deps.ts";
import type { Repository } from "../domains/repository.ts";
import { sortOrderByDesc } from "./sort.ts";

Expand Down
2 changes: 1 addition & 1 deletion src/utils/unique_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
assert,
assertEquals,
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
} from "../../deps.ts";
import type { Repository } from "../domains/repository.ts";
import { unique } from "./unique.ts";

Expand Down

0 comments on commit c2ac798

Please sign in to comment.