Skip to content

Commit 2991d6d

Browse files
authored
ci: smoke tests (#277)
* smoketests: add node app implementation * smoketests: add main runner with fake-coroner and node tests * smoketests: add running smoketests to github workflows * smoketests: fix lint issues * smoketests: use real coronerd, return rxid from node app * smoketests: add smoketests to node 14 and windows * smoketests: add node-esm target * chore: update package-lock.json * sdk-core: implement AbortSignal.any method * smoketests: ignore database and package-lock.json * chore: update package-lock.json * chore: fix prettier issues * chore: update package-lock.json * chore: fix prettier issues * smoketests: increase timeout to 60s * smoketests: fix npm command on Windows * smoketests: change node-esm package name * smoketests: assert smoketests URLs in a better way * smoketests: fix npm calls again on Windows * chore: fix prettier issues * smoketests: remove trust-ssl-cert scripts --------- Co-authored-by: Sebastian Alex <[email protected]>
1 parent 09159c4 commit 2991d6d

29 files changed

+10841
-4709
lines changed

.github/workflows/test.yml

+12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
- run: npm test
32+
- run: npm run smoketest
33+
env:
34+
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
35+
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}
3236

3337
test_linux_pre_workspaces:
3438
runs-on: ubuntu-latest
@@ -54,6 +58,10 @@ jobs:
5458
node-version: ${{ matrix.node-version }}
5559
- run: npm i -g npm@8
5660
- run: npm test
61+
- run: npm run smoketest
62+
env:
63+
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
64+
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}
5765

5866
test_windows:
5967
runs-on: windows-latest
@@ -68,3 +76,7 @@ jobs:
6876
- run: npm run lint
6977
- run: npm run format:check
7078
- run: npm test
79+
- run: npm run smoketest
80+
env:
81+
SMOKETESTS_SUBMIT_LAYER_URL: ${{ secrets.SMOKETESTS_SUBMIT_LAYER_URL }}
82+
SMOKETESTS_DIRECT_SUBMIT_URL: ${{ secrets.SMOKETESTS_DIRECT_SUBMIT_URL }}

0 commit comments

Comments
 (0)