Skip to content

Commit 868dcf6

Browse files
briankwestclaude
andcommitted
Fix CI: authenticate porting-sdk checkout, install mock_relay
publish.yml + test.yml restructure: check out signalwire-typescript and porting-sdk as siblings, install Python 3.11 + mock_relay so relay tests can spawn `python -m mock_relay`. surface-audit.yml + doc-audit.yml: pass PORTING_SDK_TOKEN so Actions can clone the now-private porting-sdk repo. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 60ca9b8 commit 868dcf6

4 files changed

Lines changed: 64 additions & 7 deletions

File tree

.github/workflows/doc-audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
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

.github/workflows/publish.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/surface-audit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,35 @@ jobs:
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

0 commit comments

Comments
 (0)