|
52 | 52 | - name: Checkout source code |
53 | 53 | uses: actions/checkout@v3 |
54 | 54 |
|
| 55 | + - name: Get node version |
| 56 | + id: get_node_version |
| 57 | + run: echo "node_version=$(cat NODE_VERSION)" >> $Env:GITHUB_OUTPUT |
| 58 | + |
55 | 59 | - uses: actions/setup-node@v4 |
56 | 60 | with: |
57 | | - node-version: 'v18.17.0' |
| 61 | + node-version: ${{ steps.get_node_version.outputs.node_version }} |
58 | 62 |
|
59 | 63 | - name: Download streamer |
60 | 64 | uses: robinraju/release-downloader@v1 |
@@ -103,21 +107,22 @@ jobs: |
103 | 107 | npm install |
104 | 108 | npm run build |
105 | 109 |
|
106 | | - - name: Run Signalling |
107 | | - working-directory: SignallingWebServer |
108 | | - run: Start-Process "npm" -ArgumentList "run","start","--","--rest_api","--player_port 999","--http_root ${{ github.workspace }}\www" |
109 | | - |
110 | | - - name: Run Streamer |
111 | | - working-directory: Streamer |
112 | | - run: Start-Process ".\Minimal\Binaries\Win64\Minimal-Cmd.exe" -ArgumentList "-warp","-dx12","-windowed","-resx=1920","-resy=720","-PixelStreamingURL=ws://localhost:8888","-RenderOffScreen","-AllowSoftwareRendering","-PixelStreamingEncoderCodec=vp8", "-Log=Minimal.log" |
113 | | - |
114 | 110 | - name: Prepare test |
115 | 111 | working-directory: Extras\MinimalStreamTester |
116 | 112 | run: | |
117 | 113 | npm install |
118 | 114 | npx playwright install --with-deps |
119 | 115 | npx playwright install chrome |
120 | 116 |
|
| 117 | + - name: Run Signalling |
| 118 | + working-directory: SignallingWebServer |
| 119 | + # triple hyphen for npm script running issues. With double the arguments get mangled |
| 120 | + run: Start-Process powershell.exe -ArgumentList "npm","run","start","---","--rest_api","--player_port 999","--http_root ${{ github.workspace }}\www" |
| 121 | + |
| 122 | + - name: Run Streamer |
| 123 | + working-directory: Streamer |
| 124 | + run: Start-Process ".\Minimal\Binaries\Win64\Minimal-Cmd.exe" -ArgumentList "-warp","-dx12","-windowed","-resx=1920","-resy=720","-PixelStreamingURL=ws://localhost:8888","-RenderOffScreen","-AllowSoftwareRendering","-PixelStreamingEncoderCodec=vp8", "-Log=Minimal.log" |
| 125 | + |
121 | 126 | - name: Wait for signalling to come up |
122 | 127 | run: curl --retry 10 --retry-delay 20 --retry-connrefused http://localhost:999/api/status |
123 | 128 |
|
|
0 commit comments