File tree 3 files changed +24
-10
lines changed
3 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 1
1
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
3
4
- name : Test
4
+ name : CI
5
5
6
6
on :
7
7
push :
15
15
16
16
strategy :
17
17
matrix :
18
- node-version : [13.x]
19
- deno : [0 .40.0]
18
+ node : [13.x]
19
+ deno : [v0 .40.0]
20
20
21
21
steps :
22
22
- uses : actions/checkout@v2
@@ -25,20 +25,32 @@ jobs:
25
25
run :
26
26
sudo apt install -y automake build-essential git pkg-config python
27
27
python-pip unzip
28
+ - name : Cache emsdk
29
+ uses : actions/cache@v1
30
+ id : cache # This is important!
31
+ with :
32
+ # Set to the same folder as actions-cache-folder (more below)
33
+ path : " emsdk-cache"
34
+ # Set the end bit to emsdk version
35
+ key : ${{ runner.os }}-emsdk-1.39.12
28
36
- name : Setup emsdk (use cache if found, create otherwise)
29
37
uses : mymindstorm/setup-emsdk@v2
30
38
with :
31
39
version : 1.39.12
32
- - name : Install Node.js 13
40
+ actions-cache-folder : " emsdk-cache"
41
+ # This stops it from using tc.cacheDir since we are using
42
+ # actions/cache.
43
+ no-cache : true
44
+ - name : Install Node.js ${{ matrix.node }}
33
45
uses : actions/setup-node@v1
34
46
env :
35
47
RUNNER_TEMP : /tmp
36
48
with :
37
- node-version : " 13.x "
38
- - name : Setup Deno latest
49
+ node-version : ${{ matrix.node }}
50
+ - name : Install Deno ${{ matrix.deno }}
39
51
run :
40
52
curl -fsSL https://deno.land/x/install/install.sh | sudo
41
- DENO_INSTALL=/usr/local sh
53
+ DENO_INSTALL=/usr/local sh -s ${{ matrix.deno }}
42
54
- name : Download and build dependencies
43
55
run : make deps
44
56
env :
Original file line number Diff line number Diff line change 1
1
# Viz.js
2
2
3
- [ ![ Build Status ] ( https://travis-ci.org/mdaines /viz.js.svg?branch=master )] ( https://travis-ci.org/mdaines /viz.js )
3
+ [ ![ CI ] ( https://github.com/aduh95 /viz.js/workflows/CI/badge .svg )] ( https://github.com/aduh95 /viz.js/actions )
4
4
5
5
This project builds [ Graphviz] ( http://www.graphviz.org ) with
6
6
[ Emscripten] ( http://kripken.github.io/emscripten-site/ ) and provides a simple
Original file line number Diff line number Diff line change @@ -6,16 +6,18 @@ args[args.findIndex(flag => /enable-features/.test(flag))] +=
6
6
",ExperimentalProductivityFeatures,ImportMaps" ;
7
7
const PUPPETEER_OPTIONS = { args } ;
8
8
9
+ const closableMock = { close : Function . prototype } ;
10
+
9
11
describe ( "Test graph rendering using web browser" , function ( ) {
10
12
/**
11
13
* @type {{close:Promise<void>, port: Promise<number>} }
12
14
*/
13
- let server ;
15
+ let server = closableMock ;
14
16
15
17
/**
16
18
* @type {Browser }
17
19
*/
18
- let browser ;
20
+ let browser = closableMock ;
19
21
20
22
/**
21
23
* @type {Page }
You can’t perform that action at this time.
0 commit comments