Skip to content

Commit e1b2543

Browse files
committed
ci: add Windows job for integration API tests
1 parent 4bb3d04 commit e1b2543

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/integration-tests.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,62 @@ jobs:
194194
retention-days: 3
195195
if-no-files-found: ignore
196196

197+
run-integration-apiTests-windows:
198+
name: Integration API Tests (Windows, Node.js v22)
199+
needs: [build-windows]
200+
runs-on: windows-latest
201+
timeout-minutes: 15
202+
203+
steps:
204+
- name: Checkout code
205+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
206+
207+
- name: Setup Node.js 22
208+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
209+
with:
210+
node-version: 22
211+
package-manager-cache: false
212+
213+
- name: Download build artifacts
214+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
215+
with:
216+
name: harper-build-artifacts-windows
217+
218+
- name: Setup Harper
219+
env:
220+
DEFAULTS_MODE: 'dev'
221+
HDB_ADMIN_USERNAME: 'admin'
222+
HDB_ADMIN_PASSWORD: 'password'
223+
ROOTPATH: ${{ runner.temp }}/hdb
224+
OPERATIONSAPI_NETWORK_PORT: 9925
225+
LOGGING_LEVEL: 'debug'
226+
LOGGING_STDSTREAMS: true
227+
THREADS_COUNT: 1
228+
THREADS_DEBUG: false
229+
NODE_HOSTNAME: 'localhost'
230+
run: |
231+
New-Item -ItemType Directory -Force -Path ${{ runner.temp }}/hdb/log
232+
node ./dist/bin/harper.js install > ${{ runner.temp }}/hdb/log/install-stdout.log 2> ${{ runner.temp }}/hdb/log/install-stderr.log
233+
sleep 10
234+
Start-Process node -ArgumentList "./dist/bin/harper.js start" -RedirectStandardOutput "${{ runner.temp }}/hdb/log/start-stdout.log" -RedirectStandardError "${{ runner.temp }}/hdb/log/start-stderr.log" -PassThru
235+
sleep 10
236+
237+
- name: Run API Tests
238+
id: run-api-tests
239+
env:
240+
HDB_ADMIN_USERNAME: 'admin'
241+
HDB_ADMIN_PASSWORD: 'password'
242+
run: npm run test:integration:api-tests
243+
244+
- name: Upload Harper logs
245+
if: failure()
246+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
247+
with:
248+
name: harper-integration-api-test-logs-windows
249+
path: ${{ runner.temp }}/hdb/log/
250+
retention-days: 3
251+
if-no-files-found: ignore
252+
197253
run-integration-tests:
198254
name: Integration Tests ${{matrix.shard}}/4 (Node.js v${{ matrix.node-version }})
199255
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)