File tree Expand file tree Collapse file tree 7 files changed +13
-17
lines changed Expand file tree Collapse file tree 7 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,15 @@ jobs:
17
17
18
18
- name : Setup deno
19
19
uses : denolib/setup-deno@v2
20
- with :
21
- deno-version : v1.4.0
22
20
23
21
- name : Build
24
22
run : |
25
23
export DENO_INSTALL="/home/runner/.deno"
26
24
export PATH="$DENO_INSTALL/bin:$PATH"
27
25
deno --version
28
26
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
30
29
env :
31
30
USERNAME : ${{ secrets.USERNAME }}
32
31
TOKEN : ${{ secrets.TOKEN }}
Original file line number Diff line number Diff line change 17
17
18
18
- name : Setup Deno
19
19
uses : denolib/setup-deno@v2
20
- with :
21
- deno-version : v1.3.3
22
20
23
21
- name : Publish module
24
22
run : |
Original file line number Diff line number Diff line change 1
1
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" ;
3
3
export {
4
4
Markdown ,
5
5
link ,
6
6
} from "https://deno.land/x/deno_markdown@0.3/mod.ts" ;
7
7
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" ;
9
9
export { args } from "https://deno.land/x/args@2.0.7/wrapper.ts" ;
10
10
export {
11
11
EarlyExitFlag ,
@@ -21,3 +21,6 @@ export {
21
21
PARSE_FAILURE ,
22
22
} from "https://deno.land/x/args@2.0.7/symbols.ts" ;
23
23
export { coffee } ;
24
+
25
+ // Test dependencies
26
+ export { assert , assertEquals } from "https://deno.land/std@0.70.0/testing/asserts.ts" ;
Original file line number Diff line number Diff line change 1
- import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts .ts" ;
1
+ import { assertEquals } from "../../deps .ts" ;
2
2
import { fetchLatestMetaByModuleName as fetchMetaByModuleName } from "./deno_repository.ts" ;
3
3
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
9
5
Deno . test ( "fetchLatestMetaByName using promise all" , async ( ) => {
10
6
const [ ranking , std ] = await Promise . all ( [
11
7
fetchMetaByModuleName ( "ranking" , "0.1.1" ) ,
12
- fetchMetaByModuleName ( "std" , "0.69 .0" ) ,
8
+ fetchMetaByModuleName ( "std" , "0.70 .0" ) ,
13
9
] ) ;
14
10
assertEquals ( ranking . upload_options . repository , "yoshixmk/deno-x-ranking" ) ;
15
11
assertEquals ( std . upload_options . repository , "denoland/deno" ) ;
Original file line number Diff line number Diff line change 1
1
import {
2
2
assert ,
3
3
assertEquals ,
4
- } from "https://deno.land/std@0.69.0/testing/asserts .ts" ;
4
+ } from "../../deps .ts" ;
5
5
import { fetchAll , fetchOne } from "./registry_repository.ts" ;
6
6
7
7
Deno . test ( "fetchOne" , async ( ) => {
Original file line number Diff line number Diff line change 1
- import { assertEquals } from "https://deno.land/std@0.69.0/testing/asserts .ts" ;
1
+ import { assertEquals } from "../../deps .ts" ;
2
2
import type { Repository } from "../domains/repository.ts" ;
3
3
import { sortOrderByDesc } from "./sort.ts" ;
4
4
Original file line number Diff line number Diff line change 1
1
import {
2
2
assert ,
3
3
assertEquals ,
4
- } from "https://deno.land/std@0.69.0/testing/asserts .ts" ;
4
+ } from "../../deps .ts" ;
5
5
import type { Repository } from "../domains/repository.ts" ;
6
6
import { unique } from "./unique.ts" ;
7
7
You can’t perform that action at this time.
0 commit comments