Skip to content

Commit e2b6aa1

Browse files
committed
test(wtr): add wtr tests to CI
1 parent 35684a2 commit e2b6aa1

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Run Web Test Runner integration tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- release
8+
- 'spring*'
9+
- 'summer*'
10+
- 'winter*'
11+
pull_request:
12+
branches:
13+
- master
14+
- release
15+
- 'spring*'
16+
- 'summer*'
17+
- 'winter*'
18+
19+
env:
20+
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
21+
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
22+
GITHUB_RUN_ID: ${{github.run_id}}
23+
COVERAGE: '1'
24+
NODE_VERSION: '20.18.1'
25+
26+
jobs:
27+
# Starting with the basics, just get tests running in CI
28+
# TODO: add env var combos we use for Karma tests
29+
# TODO: upload result artifacts
30+
# TODO: make it saucy 🥫
31+
run-wtr-tests-group-1:
32+
runs-on: ubuntu-22.04
33+
env:
34+
SAUCE_TUNNEL_ID: github-action-tunnel-wtr-${{github.run_id}}-group-1
35+
defaults:
36+
run:
37+
working-directory: ./packages/@lwc/integration-not-karma
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v4
41+
42+
- name: Setup Node
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: ${{ env.NODE_VERSION }}
46+
cache: 'yarn'
47+
48+
- name: Install dependencies
49+
run: yarn install --frozen-lockfile
50+
working-directory: ./
51+
52+
# - uses: saucelabs/[email protected]
53+
# with:
54+
# username: ${{ secrets.SAUCE_USERNAME }}
55+
# accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
56+
# tunnelName: ${{ env.SAUCE_TUNNEL_ID }}
57+
# region: us
58+
59+
- run: yarn test
60+
61+
run-karma-tests:
62+
runs-on: ubuntu-22.04
63+
defaults:
64+
run:
65+
working-directory: ./packages/@lwc/integration-not-karma
66+
needs:
67+
- run-wtr-tests-group-1

0 commit comments

Comments
 (0)