File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 build :
1414
1515 runs-on : ubuntu-latest
16+ defaults :
17+ run :
18+ shell : bash
1619
1720 strategy :
1821 matrix :
2831 - run : npm run build
2932 - run : npm test
3033 env :
31- TEST_CONFIGURATION_BASE_URL : ${{ secrets.TEST_CONFIGURATION_BASE_URL }}
34+ TEST_CONFIGURATION_ACCESS_TOKEN : ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
35+ - run : scripts/run_example.sh
36+ env :
3237 TEST_CONFIGURATION_ACCESS_TOKEN : ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 66/test /configuration * .json
77/coverage /
88* .d.ts
9+ demo /
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ const Barcode = require('aspose-barcode-cloud-node');
33
44const config = new Barcode . Configuration (
55 'Client Id from https://dashboard.aspose.cloud/applications' ,
6- 'Client Secret from https://dashboard.aspose.cloud/applications'
6+ 'Client Secret from https://dashboard.aspose.cloud/applications' ,
7+ null ,
8+ process . env [ 'TEST_CONFIGURATION_ACCESS_TOKEN' ]
79) ;
810
911async function generate ( api ) {
@@ -17,4 +19,4 @@ async function generate(api) {
1719}
1820
1921const api = new Barcode . BarcodeApi ( config ) ;
20- generate ( api ) . catch ( err => console . error ( err ) ) ;
22+ generate ( api ) . catch ( err => { console . error ( err ) ; process . exitCode = 1 ; } ) ;
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euo pipefail
4+
5+ TEST_DIR=" demo"
6+
7+ mkdir -p ${TEST_DIR}
8+ cp example.js ${TEST_DIR}
9+
10+ pushd ${TEST_DIR}
11+ mkdir -p node_modules/aspose-barcode-cloud-node
12+ pushd " $_ "
13+ ln -sv --force ../../../package.json
14+ ln -sv --force ../../../dist/
15+ popd
16+ # Run
17+ node example.js
18+ popd
You can’t perform that action at this time.
0 commit comments