Skip to content

Commit

Permalink
update gagic. fix test for Deno 1.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshixmk committed Sep 17, 2020
1 parent 372bddd commit 54f0f3b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ jobs:
- name: Setup deno
uses: denolib/setup-deno@v2
with:
deno-version: v1.3.3
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 install --unstable --allow-read --allow-write --allow-net -n pagic https://deno.land/x/pagic@v0.9.1/mod.ts
pagic build
deno run --unstable --allow-read --allow-write --allow-net https://deno.land/x/gagic@0.9.2/mod.ts build
env:
USERNAME: ${{ secrets.USERNAME }}
TOKEN: ${{ secrets.TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ After processing according to the ranking logic below, limit to only the necessa

## Hosting using Markdown format
``` Shell
$ deno run --unstable --allow-read --allow-write --allow-net https://deno.land/x/pagic@v0.9.1/mod.ts build --serve --watch
$ deno run --unstable --allow-read --allow-write --allow-net https://deno.land/x/gagic@v0.9.2/mod.ts build --serve --watch
```

## Plan
Expand Down
4 changes: 2 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.61.0/encoding/base64.ts";
export { encode } from "https://deno.land/std@0.69.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.64.0/fmt/colors.ts";
export { green, red } from "https://deno.land/std@0.69.0/fmt/colors.ts";
export { args } from "https://deno.land/x/args@2.0.7/wrapper.ts";
export {
EarlyExitFlag,
Expand Down
2 changes: 1 addition & 1 deletion pagic.config.tsx → gagic.config.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @deno-types="https://deno.land/x/pagic@v0.9.1/src/types/react/v16.13.1/react.d.ts"
// @deno-types="https://deno.land/x/gagic@0.9.2/src/types/react/v16.13.1/react.d.ts"
import React from "https://dev.jspm.io/react@16.13.1";

export default {
Expand Down
6 changes: 3 additions & 3 deletions src/repositories/deno_repository__test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts.ts";
import { fetchLatestMetaByModuleName as fetchMetaByModuleName } from "./deno_repository.ts";

Deno.test("fetchLatestMetaByName", async () => {
Expand All @@ -8,8 +8,8 @@ Deno.test("fetchLatestMetaByName", async () => {

Deno.test("fetchLatestMetaByName using promise all", async () => {
const [ranking, std] = await Promise.all([
fetchMetaByModuleName("ranking", "0.0.5"),
fetchMetaByModuleName("std", "0.64.0"),
fetchMetaByModuleName("ranking", "0.1.1"),
fetchMetaByModuleName("std", "0.69.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.64.0/testing/asserts.ts";
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
import { fetchAll, fetchOne } from "./registry_repository.ts";

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

const sampleCreater = (index: number): Repository => {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/unique_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
assert,
assertEquals,
} from "https://deno.land/std/testing/asserts.ts";
import { Repository } from "../domains/repository.ts";
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
import type { Repository } from "../domains/repository.ts";
import { unique } from "./unique.ts";

const sampleCreater = (index: number): Repository => {
Expand Down

0 comments on commit 54f0f3b

Please sign in to comment.