File tree 3 files changed +21
-8
lines changed
3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
build :
12
+
12
13
runs-on : ubuntu-latest
14
+
15
+ strategy :
16
+ matrix :
17
+ node-version : [10.x, 12.x]
18
+
13
19
steps :
14
- - uses : actions/checkout@v2
15
- - uses : actions/setup-node@v1
16
- with :
17
- node-version : 12
18
- - run : npm ci
19
- - run : npm test
20
+ - uses : actions/checkout@v2
21
+ - name : Use Node.js ${{ matrix.node-version }}
22
+ uses : actions/setup-node@v1
23
+ with :
24
+ node-version : ${{ matrix.node-version }}
25
+ - run : npm ci
26
+ - run : npm run build --if-present
27
+ - run : npm test
28
+ env :
29
+ CI : true
20
30
21
31
publish-npm :
22
32
needs : build
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.5" ,
4
4
"description" : " Library exposing TestRail API" ,
5
5
"main" : " lib/index.js" ,
6
+ "files" : [
7
+ " /lib"
8
+ ],
6
9
"typings" : " lib/index.d.ts" ,
7
10
"engines" : {
8
11
"node" : " >=10.9"
Original file line number Diff line number Diff line change 1
1
import fetch from "node-fetch" ;
2
2
3
- import { TestRail } from "./api" ;
4
- import { HttpMethod , ResponseType } from "./interfaces" ;
3
+ import { TestRail } from "../src /api" ;
4
+ import { HttpMethod , ResponseType } from "../src /interfaces" ;
5
5
6
6
jest . mock ( "node-fetch" , ( ) => jest . fn ( ) ) ;
7
7
const { Response } = jest . requireActual ( "node-fetch" ) ;
You can’t perform that action at this time.
0 commit comments