-
Notifications
You must be signed in to change notification settings - Fork 439
117 lines (107 loc) · 5.44 KB
/
web-test-runner.yml
File metadata and controls
117 lines (107 loc) · 5.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Run Web Test Runner integration tests
on:
push:
branches:
- master
- release
- 'spring*'
- 'summer*'
- 'winter*'
pull_request:
env:
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
GITHUB_RUN_ID: ${{github.run_id}}
COVERAGE: '1'
NODE_VERSION: '20.19.4'
jobs:
# TODO: upload result artifacts
# TODO: make it saucy 🥫
integration-tests:
runs-on: ubuntu-22.04
env:
SAUCE_TUNNEL_ID: github-action-tunnel-wtr-${{github.run_id}}-group-1
defaults:
run:
working-directory: ./packages/@lwc/integration-not-karma
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./
# - uses: saucelabs/sauce-connect-action@v3.0.0
# with:
# username: ${{ secrets.SAUCE_USERNAME }}
# accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
# tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
# region: us
- run: yarn test || true
- run: DISABLE_SYNTHETIC=1 yarn test || true
- run: LEGACY_BROWSERS=1 yarn test || true
- run: FORCE_NATIVE_SHADOW_MODE_FOR_TEST=1 yarn test || true
- run: DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE=1 yarn test || true
- run: DISABLE_DETACHED_REHYDRATION=1 yarn test || true
- run: DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE=1 DISABLE_SYNTHETIC=1 yarn test || true
- run: DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE=1 DISABLE_DETACHED_REHYDRATION=1 yarn test || true
- run: API_VERSION=58 yarn test || true
- run: API_VERSION=58 DISABLE_SYNTHETIC=1 yarn test || true
- run: API_VERSION=59 yarn test || true
- run: API_VERSION=59 DISABLE_SYNTHETIC=1 yarn test || true
- run: API_VERSION=60 yarn test || true
- run: API_VERSION=60 DISABLE_SYNTHETIC=1 yarn test || true
- run: API_VERSION=61 yarn test || true
- run: API_VERSION=61 DISABLE_SYNTHETIC=1 yarn test || true
- run: API_VERSION=62 yarn test || true
- run: API_VERSION=62 DISABLE_SYNTHETIC=1 yarn test || true
- run: DISABLE_SYNTHETIC_SHADOW_SUPPORT_IN_COMPILER=1 DISABLE_SYNTHETIC=1 yarn test || true
- run: DISABLE_SYNTHETIC_SHADOW_SUPPORT_IN_COMPILER=1 DISABLE_SYNTHETIC=1 DISABLE_STATIC_CONTENT_OPTIMIZATION=1 yarn test || true
- run: ENABLE_ARIA_REFLECTION_GLOBAL_POLYFILL=1 yarn test || true
- run: ENABLE_ARIA_REFLECTION_GLOBAL_POLYFILL=1 DISABLE_SYNTHETIC=1 yarn test || true
- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 yarn test || true
- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 DISABLE_SYNTHETIC=1 yarn test || true
- run: NODE_ENV_FOR_TEST=production yarn test || true
- run: NODE_ENV_FOR_TEST=production DISABLE_SYNTHETIC=1 yarn test || true
hydration-tests:
runs-on: ubuntu-22.04
env:
SAUCE_TUNNEL_ID: github-action-tunnel-wtr-${{github.run_id}}-group-1
defaults:
run:
working-directory: ./packages/@lwc/integration-not-karma
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./
# - uses: saucelabs/sauce-connect-action@v3.0.0
# with:
# username: ${{ secrets.SAUCE_USERNAME }}
# accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
# tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
# region: us
- run: ENGINE_SERVER=1 yarn test:hydration || true
# DISABLE_SYNTHETIC is enabled by default in hydration tests, so the inverse is disabling
- run: ENGINE_SERVER=1 DISABLE_SYNTHETIC='' yarn test:hydration || true
- run: ENGINE_SERVER=1 NODE_ENV_FOR_TEST=production yarn test:hydration || true
- run: ENGINE_SERVER=1 DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE=1 yarn test:hydration || true
- run: ENGINE_SERVER=1 DISABLE_STATIC_CONTENT_OPTIMIZATION=1 yarn test:hydration || true
- run: ENGINE_SERVER=1 DISABLE_DETACHED_REHYDRATION=1 yarn test:hydration || true
- run: ENGINE_SERVER=1 DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE=1 DISABLE_DETACHED_REHYDRATION=1 yarn test:hydration || true
- run: yarn test:hydration || true
# DISABLE_SYNTHETIC is enabled by default in hydration tests, so the inverse is disabling
- run: DISABLE_SYNTHETIC='' yarn test:hydration || true
- run: NODE_ENV_FOR_TEST=production yarn test:hydration || true
- run: DISABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE=1 yarn test:hydration || true
- run: DISABLE_STATIC_CONTENT_OPTIMIZATION=1 yarn test:hydration || true