Skip to content

Commit 93c410e

Browse files
committed
deno tests
1 parent a224e0d commit 93c410e

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: Deno CI
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ deno ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ deno ]
1111

1212
jobs:
1313
build:
@@ -16,13 +16,12 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [ 12.x, 14.x, 15.x ]
19+
deno: [ "v1.0.0", "v0.42.0", "v1.x", "v0.x", "nightly" ]
2020

2121
steps:
2222
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
23+
- name: Setup Deno ${{ matrix.deno }}
24+
uses: denolib/setup-deno@v2
2525
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: npm run build --if-present
28-
- run: npm test
26+
deno-version: ${{ matrix.deno }}
27+
- run: eno run --allow-read --allow-run tests/run.js

‎tests/run.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
console.log(`running test ${file}`);
66
const start = Date.now();
77
const proc = Deno.run({
8-
cmd: ['deno', 'run', '--allow-read', `./tests/${file}`],
8+
cmd: ['deno', 'run', '--allow-read', '--allow-net', `./tests/${file}`],
99
stdout: 'piped',
1010
stderr: 'piped'
1111
});

0 commit comments

Comments
 (0)