File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 - name : Build
3838 run : npm run build
3939
40+ - uses : actions/upload-artifact@v4
41+ with :
42+ name : node_modules
43+ path : node_modules
44+
45+ - uses : actions/upload-artifact@v4
46+ with :
47+ name : build
48+ path : dist
49+
4050 - name : Audit
4151 run : npm audit
4252
@@ -61,12 +71,14 @@ jobs:
6171 with :
6272 node-version : 20
6373 registry-url : https://registry.npmjs.org/
64-
65- - name : Install dependencies
66- run : npm ci
6774
68- - name : Build
69- run : npm run build
75+ - uses : actions/download-artifact@v4
76+ with :
77+ name : node_modules
78+
79+ - uses : actions/download-artifact@v4
80+ with :
81+ name : build
7082
7183 - name : Test (Service Client)
7284 env :
@@ -93,11 +105,13 @@ jobs:
93105 node-version : 20
94106 registry-url : https://registry.npmjs.org/
95107
96- - name : Install dependencies
97- run : npm ci
108+ - uses : actions/download-artifact@v4
109+ with :
110+ name : node_modules
98111
99- - name : Build
100- run : npm run build
112+ - uses : actions/download-artifact@v4
113+ with :
114+ name : build
101115
102116 - name : Test (Native Client)
103117 env :
Original file line number Diff line number Diff line change @@ -24,9 +24,13 @@ const tests = () => describe('list', () => {
2424 } ) ;
2525
2626 after ( async ( ) => {
27- await runCommand ( `itwin delete --itwin-id ${ testITwin1Child . id } ` ) ;
28- await runCommand ( `itwin delete --itwin-id ${ testITwin1 . id } ` ) ;
29- await runCommand ( `itwin delete --itwin-id ${ testITwin2 . id } ` ) ;
27+ const deleteResult1 = await runCommand ( `itwin delete --itwin-id ${ testITwin1Child . id } ` ) ;
28+ const deleteResult2 = await runCommand ( `itwin delete --itwin-id ${ testITwin1 . id } ` ) ;
29+ const deleteResult3 = await runCommand ( `itwin delete --itwin-id ${ testITwin2 . id } ` ) ;
30+
31+ expect ( deleteResult1 . result ) . to . have . property ( 'result' , 'deleted' ) ;
32+ expect ( deleteResult2 . result ) . to . have . property ( 'result' , 'deleted' ) ;
33+ expect ( deleteResult3 . result ) . to . have . property ( 'result' , 'deleted' ) ;
3034 } )
3135
3236 it ( 'should fail when provided bad subClass' , async ( ) => {
You can’t perform that action at this time.
0 commit comments