Skip to content

Commit

Permalink
fix: ✨ Deno 1.2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Jul 14, 2020
1 parent 11d5840 commit e052320
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
on: push
name: Test
name: ci

on: [push, pull_request]

jobs:
test:
name: test
runs-on: ubuntu-latest
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@master
- uses: denolib/setup-deno@master
with:
deno-version: 1.0.2
- run: deno test --allow-read
deno-version: 1.2.0

- run: deno -V

- if: matrix.os == 'ubuntu-latest'
run: deno fmt --check

- run: deno test test.ts
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dirname, join } from "https://deno.land/std@0.54.0/path/mod.ts";
import { dirname, join } from "https://deno.land/std@0.61.0/path/mod.ts";

type AsyncFunction<S extends any[], T> = (...params: S) => Promise<T>;
type MaybeAsyncFunction<S extends any[], T> = (...params: S) => T | Promise<T>;
Expand Down
4 changes: 3 additions & 1 deletion 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.54.0/testing/asserts.ts";
} from "https://deno.land/std@0.61.0/testing/asserts.ts";

import { parry } from "./mod.ts";

Expand Down Expand Up @@ -186,6 +186,7 @@ test({

const r = await p.run(
(async () => {
// deno-lint-ignore ban-ts-comment
// @ts-ignore
return value;
}),
Expand All @@ -206,6 +207,7 @@ test({

const r = await p.run(
(async () => {
// deno-lint-ignore ban-ts-comment
// @ts-ignore
return add(1, 1);
}),
Expand Down

0 comments on commit e052320

Please sign in to comment.