Skip to content

Commit d35d50b

Browse files
authored
chore: update sauce connect launcher (#2253)
* chore: update sauce connect launcher * increase timeout * fix workflow commands
1 parent d5f5005 commit d35d50b

File tree

10 files changed

+149
-273
lines changed

10 files changed

+149
-273
lines changed

.github/workflows/local.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/sauce-p2.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/sauce-p3.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/unit-tests.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Unit Tests
2+
3+
# all pull requests
4+
on: pull_request
5+
6+
jobs:
7+
# Running local tests is disabled due to outdated dependencies
8+
# see https://github.com/vaadin/components-team-tasks/issues/628
9+
# unit-tests-p2:
10+
# name: Polymer 2 on the CI agent
11+
# runs-on: ubuntu-latest
12+
# steps:
13+
# - name: Set up Node 16.x
14+
# uses: actions/setup-node@v4
15+
# with:
16+
# node-version: 16.x
17+
#
18+
# - name: Check out the source code
19+
# uses: actions/checkout@v2
20+
#
21+
# - name: Install global npm dependencies
22+
# # bower is needed to run 'bower install'
23+
# # polymer-cli is needed to run the lint step
24+
# run: "npm install --quiet --no-progress --global bower polymer-cli"
25+
#
26+
# - name: Install project npm dependencies
27+
# run: "npm ci"
28+
#
29+
# - name: Install project Bower dependencies
30+
# run: "bower install --quiet"
31+
#
32+
# - name: Run automated magi-cli checks
33+
# run: "npm run check"
34+
#
35+
# - name: Run a linter
36+
# run: "npm run lint"
37+
#
38+
# # the full set of environments is tested with Polymer 3 below
39+
# - name: Run unit tests locally (in the VM instance running this job)
40+
# run: "xvfb-run -s '-screen 0 1024x768x24' npm test"
41+
42+
unit-tests-p3:
43+
name: Polymer 3 on SauceLabs
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Set up Node 16.x
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: 16.x
50+
51+
- name: Check out the (Polymer 2) source code
52+
uses: actions/checkout@v2
53+
54+
- name: Install global npm dependencies
55+
# bower and polymer-modulizer are needed to run the Polymer 3 conversion step
56+
run: "npm install --quiet --no-progress --global bower magi-cli polymer-modulizer"
57+
58+
- name: Convert the source code to Polymer 3
59+
run: |
60+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
61+
git config --local user.name "github-actions[bot]"
62+
magi p3-convert --out . --import-style=name
63+
64+
# workaround for running tests on Android on SauceLabs (see wct.conf.js)
65+
- name: Add 'localhost-for-saucelabs' to /etc/hosts
66+
run: echo "127.0.0.1 localhost-for-saucelabs" | sudo tee -a /etc/hosts
67+
68+
- name: Run unit tests [Desktop / Batch 1]
69+
env:
70+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
71+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
72+
run: npm test -- --env saucelabs --suites batch1
73+
74+
- name: Run unit tests [Desktop / Batch 2]
75+
env:
76+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
77+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
78+
run: npm test -- --env saucelabs --suites batch2
79+
80+
- name: Run unit tests [Desktop / Batch 3]
81+
env:
82+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
83+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
84+
run: npm test -- --env saucelabs --suites batch3
85+
86+
- name: Run unit tests [Desktop / Batch 4]
87+
env:
88+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
89+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
90+
run: npm test -- --env saucelabs --suites batch4
91+
92+
- name: Run unit tests [Desktop / Batch 5]
93+
env:
94+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
95+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
96+
run: npm test -- --env saucelabs --suites batch5
File renamed without changes.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ To use the Material theme, import the correspondent file from the `theme/materia
127127

128128
## Running tests from the command line
129129

130+
> [!WARNING]
131+
> Running tests locally from the CLI does not work due to outdated dependencies. Run tests via SauceLabs or in the browser instead.
132+
130133
1. When in the `vaadin-grid` directory, run `polymer test`
131134

132135

package-lock-p3.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9750,8 +9750,7 @@
97509750
},
97519751
"node_modules/sauce-connect-launcher": {
97529752
"version": "1.3.2",
9753-
"resolved": "https://registry.npmjs.org/sauce-connect-launcher/-/sauce-connect-launcher-1.3.2.tgz",
9754-
"integrity": "sha512-wf0coUlidJ7rmeClgVVBh6Kw55/yalZCY/Un5RgjSnTXRAeGqagnTsTYpZaqC4dCtrY4myuYpOAZXCdbO7lHfQ==",
9753+
"resolved": "git+ssh://[email protected]/vaadin/sauce-connect-launcher.git#20fca782221404fef626c985e975268bfaba05cd",
97559754
"dev": true,
97569755
"hasInstallScript": true,
97579756
"optional": true,
@@ -21909,10 +21908,9 @@
2190921908
"dev": true
2191021909
},
2191121910
"sauce-connect-launcher": {
21912-
"version": "1.3.2",
21913-
"resolved": "https://registry.npmjs.org/sauce-connect-launcher/-/sauce-connect-launcher-1.3.2.tgz",
21914-
"integrity": "sha512-wf0coUlidJ7rmeClgVVBh6Kw55/yalZCY/Un5RgjSnTXRAeGqagnTsTYpZaqC4dCtrY4myuYpOAZXCdbO7lHfQ==",
21911+
"version": "git+ssh://[email protected]/vaadin/sauce-connect-launcher.git#20fca782221404fef626c985e975268bfaba05cd",
2191521912
"dev": true,
21913+
"from": "sauce-connect-launcher@vaadin/sauce-connect-launcher#upgrade-sauce-connect-5",
2191621914
"optional": true,
2191721915
"requires": {
2191821916
"adm-zip": "~0.4.3",
@@ -24520,7 +24518,7 @@
2452024518
"cleankill": "^2.0.0",
2452124519
"lodash": "^4.17.10",
2452224520
"request": "^2.85.0",
24523-
"sauce-connect-launcher": "^1.0.0",
24521+
"sauce-connect-launcher": "vaadin/sauce-connect-launcher#upgrade-sauce-connect-5",
2452424522
"temp": "^0.8.1",
2452524523
"uuid": "^3.2.1"
2452624524
}

package-lock.json

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,10 @@
5151
"data-grid",
5252
"data-table"
5353
],
54-
"dependencies": {}
54+
"dependencies": {},
55+
"overrides": {
56+
"wct-sauce": {
57+
"sauce-connect-launcher": "vaadin/sauce-connect-launcher#upgrade-sauce-connect-5"
58+
}
59+
}
5560
}

0 commit comments

Comments
 (0)