Skip to content

Commit

Permalink
chore: update sauce connect launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker committed Feb 10, 2025
1 parent 5e6b026 commit 23b98f5
Show file tree
Hide file tree
Showing 7 changed files with 305 additions and 4,667 deletions.
80 changes: 37 additions & 43 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,52 @@ name: Unit Tests
on: pull_request

jobs:
unit-tests-p2:
name: Polymer 2 on the CI agent
runs-on: ubuntu-latest
steps:
- name: Set up Node 12.x
uses: actions/setup-node@v4
with:
node-version: 12.x

- name: Check out the source code
uses: actions/checkout@v4

- name: Install latest npm
# magi-cli 1.0 requires npm 7 or higher
run: "npm install -g npm@8"

- name: Install global npm dependencies
# bower is needed to run 'bower install'
# polymer-cli is needed to run the lint step
run: "npm install --quiet --no-progress --global bower polymer-cli"

- name: Install project npm dependencies
run: "npm ci"

- name: Install project Bower dependencies
run: "bower install --quiet"

- name: Run automated magi-cli checks
run: "npm run check"

- name: Run a linter
run: "npm run lint"

# the full set of environments is tested with Polymer 3 below
- name: Run unit tests locally (in the VM instance running this job)
run: "xvfb-run -s '-screen 0 1024x768x24' npm test"
# Running local tests is disabled due to outdated dependencies
# see https://github.com/vaadin/components-team-tasks/issues/628
# unit-tests-p2:
# name: Polymer 2 on the CI agent
# runs-on: ubuntu-latest
# steps:
# - name: Set up Node 16.x
# uses: actions/setup-node@v4
# with:
# node-version: 16.x
#
# - name: Check out the source code
# uses: actions/checkout@v2
#
# - name: Install global npm dependencies
# # bower is needed to run 'bower install'
# # polymer-cli is needed to run the lint step
# run: "npm install --quiet --no-progress --global bower polymer-cli"
#
# - name: Install project npm dependencies
# run: "npm ci"
#
# - name: Install project Bower dependencies
# run: "bower install --quiet"
#
# - name: Run automated magi-cli checks
# run: "npm run check"
#
# - name: Run a linter
# run: "npm run lint"
#
# # the full set of environments is tested with Polymer 3 below
# - name: Run unit tests locally (in the VM instance running this job)
# run: "xvfb-run -s '-screen 0 1024x768x24' npm test"

unit-tests-p3:
name: Polymer 3 on SauceLabs
runs-on: ubuntu-latest
steps:
- name: Set up Node 12.x
- name: Set up Node 16.x
uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 16.x

- name: Check out the (Polymer 2) source code
uses: actions/checkout@v4

- name: Install latest npm
# magi-cli 1.0 requires npm 7 or higher
run: "npm install -g npm@8"
uses: actions/checkout@v2

- name: Install global npm dependencies
# bower and polymer-modulizer are needed to run the Polymer 3 conversion step
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ If the license is valid, it will be saved to the local storage of the browser an

## Running tests from the command line

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


Expand Down
40 changes: 32 additions & 8 deletions package-lock-p3.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@vaadin/vaadin-charts",
"version": "6.3.7",
"version": "6.3.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@vaadin/vaadin-charts",
"version": "6.3.7",
"version": "6.3.8",
"license": "SEE LICENSE IN LICENSE.txt",
"dependencies": {
"@polymer/polymer": "^3.0.0",
Expand Down Expand Up @@ -9743,17 +9743,17 @@
},
"node_modules/sauce-connect-launcher": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/sauce-connect-launcher/-/sauce-connect-launcher-1.3.2.tgz",
"integrity": "sha512-wf0coUlidJ7rmeClgVVBh6Kw55/yalZCY/Un5RgjSnTXRAeGqagnTsTYpZaqC4dCtrY4myuYpOAZXCdbO7lHfQ==",
"resolved": "git+ssh://[email protected]/vaadin/sauce-connect-launcher.git#20fca782221404fef626c985e975268bfaba05cd",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"dependencies": {
"adm-zip": "~0.4.3",
"async": "^2.1.2",
"adm-zip": "^0.4.14",
"async": "^3.2.0",
"https-proxy-agent": "^5.0.0",
"lodash": "^4.16.6",
"rimraf": "^2.5.4"
"lodash": "^4.17.15",
"rimraf": "^3.0.2"
},
"engines": {
"node": ">= 4"
Expand All @@ -9772,6 +9772,13 @@
"node": ">= 6.0.0"
}
},
"node_modules/sauce-connect-launcher/node_modules/async": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
"integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
"dev": true,
"optional": true
},
"node_modules/sauce-connect-launcher/node_modules/https-proxy-agent": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz",
Expand All @@ -9786,6 +9793,23 @@
"node": ">= 6"
}
},
"node_modules/sauce-connect-launcher/node_modules/rimraf": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
"deprecated": "Rimraf versions prior to v4 are no longer supported",
"dev": true,
"optional": true,
"dependencies": {
"glob": "^7.1.3"
},
"bin": {
"rimraf": "bin.js"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/select-hose": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
Expand Down
Loading

0 comments on commit 23b98f5

Please sign in to comment.