Skip to content

Commit 8c53464

Browse files
committed
feat: headless browser test
1 parent f85a476 commit 8c53464

36 files changed

+17602
-294
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v3
25-
with:
25+
with:
2626
repository: waku-org/js-waku
27-
27+
2828
- uses: actions/setup-node@v3
2929
with:
3030
node-version: ${{ env.NODE_JS }}
3131
- uses: ./.github/actions/npm
32+
- name: Install headless dependencies
33+
run: cd packages/browser-tests/headless && npm install
3234
- run: npm run build
3335
- run: npm run check
3436
- run: npm run doc
@@ -37,12 +39,14 @@ jobs:
3739
runs-on: ubuntu-latest
3840
steps:
3941
- uses: actions/checkout@v3
40-
with:
42+
with:
4143
repository: waku-org/js-waku
4244
- uses: actions/setup-node@v3
4345
with:
4446
node-version: ${{ env.NODE_JS }}
4547
- uses: ./.github/actions/npm
48+
- name: Install headless dependencies
49+
run: cd packages/browser-tests/headless && npm install
4650
- name: Generate protobuf code
4751
run: |
4852
npm run proto
@@ -62,12 +66,14 @@ jobs:
6266
HOME: "/root"
6367
steps:
6468
- uses: actions/checkout@v3
65-
with:
69+
with:
6670
repository: waku-org/js-waku
6771
- uses: actions/setup-node@v3
6872
with:
6973
node-version: ${{ env.NODE_JS }}
7074
- uses: ./.github/actions/npm
75+
- name: Install headless dependencies
76+
run: cd packages/browser-tests/headless && npm install
7177
- run: npm run build:esm
7278
- run: npm run test:browser
7379

@@ -150,7 +156,7 @@ jobs:
150156
token: ${{ secrets.CI_TOKEN }}
151157

152158
- uses: actions/checkout@v3
153-
with:
159+
with:
154160
repository: waku-org/js-waku
155161
if: ${{ steps.release.outputs.releases_created }}
156162

.github/workflows/playwright.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929

3030
- uses: ./.github/actions/npm
3131

32+
- name: Install headless dependencies
33+
run: cd packages/browser-tests/headless && npm install
34+
35+
- name: Build browser test environment
36+
run: npm run build --workspace=@waku/browser-tests
37+
3238
- name: Run Playwright tests
3339
run: npm run test --workspace=@waku/browser-tests
3440

0 commit comments

Comments
 (0)