Skip to content

Commit 95d3b4b

Browse files
committed
test(wtr): split integration and hydration tests into separate jobs
1 parent f2934f8 commit 95d3b4b

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

.github/workflows/web-test-runner.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ env:
1818
NODE_VERSION: '20.19.4'
1919

2020
jobs:
21-
# Starting with the basics, just get tests running in CI
22-
# TODO: add env var combos we use for Karma tests
2321
# TODO: upload result artifacts
2422
# TODO: make it saucy 🥫
25-
wtr-group-1:
23+
integration-tests:
2624
runs-on: ubuntu-22.04
2725
env:
2826
SAUCE_TUNNEL_ID: github-action-tunnel-wtr-${{github.run_id}}-group-1
@@ -50,7 +48,6 @@ jobs:
5048
# tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
5149
# region: us
5250

53-
- run: yarn test
5451
- run: yarn test || true
5552
- run: DISABLE_SYNTHETIC=1 yarn test || true
5653
- run: LEGACY_BROWSERS=1 yarn test || true
@@ -77,6 +74,33 @@ jobs:
7774
- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 DISABLE_SYNTHETIC=1 yarn test || true
7875
- run: NODE_ENV_FOR_TEST=production yarn test || true
7976
- run: NODE_ENV_FOR_TEST=production DISABLE_SYNTHETIC=1 yarn test || true
77+
hydration-tests:
78+
runs-on: ubuntu-22.04
79+
env:
80+
SAUCE_TUNNEL_ID: github-action-tunnel-wtr-${{github.run_id}}-group-1
81+
defaults:
82+
run:
83+
working-directory: ./packages/@lwc/integration-not-karma
84+
steps:
85+
- name: Checkout repository
86+
uses: actions/checkout@v4
87+
88+
- name: Setup Node
89+
uses: actions/setup-node@v4
90+
with:
91+
node-version: ${{ env.NODE_VERSION }}
92+
cache: 'yarn'
93+
94+
- name: Install dependencies
95+
run: yarn install --frozen-lockfile
96+
working-directory: ./
97+
98+
# - uses: saucelabs/sauce-connect-action@v3.0.0
99+
# with:
100+
# username: ${{ secrets.SAUCE_USERNAME }}
101+
# accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
102+
# tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
103+
# region: us
80104
- run: ENGINE_SERVER=1 yarn test:hydration || true
81105
# DISABLE_SYNTHETIC is enabled by default in hydration tests, so the inverse is disabling
82106
- run: ENGINE_SERVER=1 DISABLE_SYNTHETIC='' yarn test:hydration || true

0 commit comments

Comments
 (0)