File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 with :
2929 repository : signalwire/porting-sdk
3030 path : porting-sdk
31+ token : ${{ secrets.PORTING_SDK_TOKEN }}
3132
3233 - name : Setup Node
3334 uses : actions/setup-node@v4
Original file line number Diff line number Diff line change @@ -11,16 +11,46 @@ jobs:
1111 contents : write
1212 id-token : write
1313 steps :
14- - uses : actions/checkout@v5
14+ - name : Checkout signalwire-typescript
15+ uses : actions/checkout@v5
16+ with :
17+ path : signalwire-typescript
18+
19+ - name : Checkout porting-sdk (mock_relay test harness)
20+ uses : actions/checkout@v5
21+ with :
22+ repository : signalwire/porting-sdk
23+ path : porting-sdk
24+ token : ${{ secrets.PORTING_SDK_TOKEN }}
25+
1526 - uses : actions/setup-node@v4
1627 with :
1728 node-version : ' 22'
1829 registry-url : ' https://registry.npmjs.org'
19- - run : npm ci
20- - run : npm test
21- - run : npm publish --access public
30+ cache : ' npm'
31+ cache-dependency-path : signalwire-typescript/package-lock.json
32+
33+ - uses : actions/setup-python@v5
34+ with :
35+ python-version : ' 3.11'
36+
37+ - name : Install mock_relay (Python test harness)
38+ run : pip install -e porting-sdk/test_harness/mock_relay
39+
40+ - name : npm ci
41+ working-directory : signalwire-typescript
42+ run : npm ci
43+
44+ - name : npm test
45+ working-directory : signalwire-typescript
46+ run : npm test
47+
48+ - name : npm publish
49+ working-directory : signalwire-typescript
50+ run : npm publish --access public
2251 env :
2352 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
53+
2454 - name : Create GitHub Release
2555 uses : softprops/action-gh-release@v2
2656 with :
Original file line number Diff line number Diff line change 2727 with :
2828 repository : signalwire/porting-sdk
2929 path : porting-sdk
30+ token : ${{ secrets.PORTING_SDK_TOKEN }}
3031
3132 - name : Setup Node
3233 uses : actions/setup-node@v4
Original file line number Diff line number Diff line change 88 test :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v5
11+ - name : Checkout signalwire-typescript
12+ uses : actions/checkout@v5
13+ with :
14+ path : signalwire-typescript
15+
16+ - name : Checkout porting-sdk (mock_relay test harness)
17+ uses : actions/checkout@v5
18+ with :
19+ repository : signalwire/porting-sdk
20+ path : porting-sdk
21+ token : ${{ secrets.PORTING_SDK_TOKEN }}
22+
1223 - uses : actions/setup-node@v4
1324 with :
1425 node-version : ' 22'
1526 cache : ' npm'
16- - run : npm ci
17- - run : npm test
27+ cache-dependency-path : signalwire-typescript/package-lock.json
28+
29+ - uses : actions/setup-python@v5
30+ with :
31+ python-version : ' 3.11'
32+
33+ - name : Install mock_relay (Python test harness)
34+ run : pip install -e porting-sdk/test_harness/mock_relay
35+
36+ - name : npm ci
37+ working-directory : signalwire-typescript
38+ run : npm ci
39+
40+ - name : npm test
41+ working-directory : signalwire-typescript
42+ run : npm test
You can’t perform that action at this time.
0 commit comments