File tree Expand file tree Collapse file tree 13 files changed +35
-99
lines changed Expand file tree Collapse file tree 13 files changed +35
-99
lines changed Original file line number Diff line number Diff line change 77on :
88 push :
99 tags :
10- - ' v* '
10+ - " v* "
1111
1212jobs :
1313 publish :
2222 - uses : actions/setup-node@v3
2323 with :
2424 node-version : ${{ env.NODE_VERSION }}
25- registry-url : ' https://registry.npmjs.org'
25+ registry-url : " https://registry.npmjs.org"
2626 - name : Build
27- run : make build-npm
27+ run : deno task build-npm
2828 - name : Publish
2929 run : |
3030 cd npm
Original file line number Diff line number Diff line change 11name : Test
22
3+ env :
4+ DENO_VERSION : 1.x
5+
36on :
47 schedule :
58 - cron : " 0 7 * * 0"
69 push :
710 branches :
811 - main
912 pull_request :
10- branches :
11- - main
1213
1314jobs :
1415 check :
15- strategy :
16- matrix :
17- runner :
18- - ubuntu-latest
19- version :
20- - " 1.x"
21- - " 1.28.x"
22- runs-on : ${{ matrix.runner }}
16+ runs-on : ubuntu-latest
2317 steps :
2418 - uses : actions/checkout@v3
2519 - uses : denoland/setup-deno@v1
2620 with :
27- deno-version : " ${{ matrix.version }}"
28- - name : Lint check
21+ deno-version : ${{ env.DENO_VERSION }}
22+ - name : Format
2923 run : |
30- make lint
31- - name : Format check
32- run : |
33- make fmt-check
24+ deno fmt --check
25+ - name : Lint
26+ run : deno lint
3427 - name : Type check
35- run : |
36- make type-check
28+ run : deno task check
3729
3830 test :
39- strategy :
40- matrix :
41- runner :
42- - windows-latest
43- - macos-latest
44- - ubuntu-latest
45- version :
46- - " 1.x"
47- - " 1.28.x"
48- runs-on : ${{ matrix.runner }}
31+ runs-on : ubuntu-latest
4932 steps :
5033 - uses : actions/checkout@v3
5134 - uses : denoland/setup-deno@v1
5235 with :
53- deno-version : " ${{ matrix.version }}"
36+ deno-version : ${{ env.DENO_VERSION }}
5437 - name : Test
5538 run : |
56- make test
39+ deno task test
5740 timeout-minutes : 5
Original file line number Diff line number Diff line change 1515 deno-version : " 1.x"
1616 - name : Update dependencies
1717 run : |
18- make deps > ../output.txt
18+ deno task upgrade > ../output.txt
1919 env :
2020 NO_COLOR : 1
2121 - name : Read ../output.txt
Original file line number Diff line number Diff line change 11/npm
2+ deno.lock
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -235,32 +235,6 @@ More complex type predications are available on `maybeXXXXX` as well like
2352353 . Rename ` ensureXXXXX ` to ` assertXXXXX ` (e.g. ` ensureString ` to ` assertString ` )
2362364 . Rename ` assumeXXXXX ` to ` ensureXXXXX ` (e.g. ` assumeNumber ` to ` ensureNumber ` )
237237
238- ## Development
239-
240- Lint code like:
241-
242- ``` text
243- make lint
244- ```
245-
246- Format code like
247-
248- ``` text
249- make fmt
250- ```
251-
252- Check types like
253-
254- ``` text
255- make type-check
256- ```
257-
258- Run tests like:
259-
260- ``` text
261- make test
262- ```
263-
264238## License
265239
266240The code follows MIT license written in [ LICENSE] ( ./LICENSE ) . Contributors need
Original file line number Diff line number Diff line change 1- import { assertThrows } from "./deps_test .ts" ;
1+ import { assertThrows } from "https://deno.land/[email protected] /testing/asserts .ts" ; 22import {
33 assertArray ,
44 assertBoolean ,
Original file line number Diff line number Diff line change 1+ {
2+ "lock" : false ,
3+ "tasks" : {
4+ "build-npm" : " deno run -A scripts/build_npm.ts $(git describe --tags --always --dirty)" ,
5+ "test" : " deno test --unstable -A --parallel" ,
6+ "check" : " deno check --unstable $(find . -name '*.ts')" ,
7+ "upgrade" : " deno run -A https://deno.land/x/udd/main.ts $(find . -name '*.ts' -not -path '*/npm/*')"
8+ }
9+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import { assertEquals , assertThrows } from "./deps_test.ts" ;
1+ import {
2+ assertEquals ,
3+ assertThrows ,
4+ } from "https://deno.land/[email protected] /testing/asserts.ts" ; 25import {
36 ensureArray ,
47 ensureBoolean ,
You can’t perform that action at this time.
0 commit comments