Skip to content

Commit 7ccb92a

Browse files
authored
CI: Download Chrome (DevExpress#29118)
1 parent ce863b5 commit 7ccb92a

File tree

10 files changed

+28
-8
lines changed

10 files changed

+28
-8
lines changed

.github/actions/run-qunit-tests/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ inputs:
3131
useCsp:
3232
description: "Indicates if tests should run with Content Security Policy (CSP) enabled"
3333
default: "true"
34+
token:
35+
description: "Tmp PAT for downloading Chrome"
36+
required: true
3437

3538
runs:
3639
using: composite
@@ -55,6 +58,7 @@ runs:
5558
uses: ./.github/actions/setup-chrome
5659
with:
5760
chrome-version: '121.0.6167.184'
61+
token: ${{ inputs.token }}
5862

5963
- name: Setup Firefox profile
6064
if: ${{ inputs.browser == 'firefox' }}

.github/actions/setup-chrome/action.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ inputs:
99
chrome-version:
1010
description: Chrome version to install
1111
default: "latest"
12+
token:
13+
description: github PAT
14+
required: true
1215

1316
runs:
1417
using: composite
@@ -27,19 +30,19 @@ runs:
2730
shell: bash
2831
env:
2932
CHROME_VERSION: ${{ inputs.chrome-version }}
33+
GH_TOKEN: ${{ inputs.token }}
3034
run: |
3135
if [ -n "$CHROME_VERSION" ]; then
3236
sudo apt-get update
3337
sudo apt-get -y install libu2f-udev
34-
38+
39+
curl -sS https://webi.sh/gh | sh
40+
source ~/.config/envman/PATH.env
41+
3542
mkdir google-chrome-setup
36-
pushd google-chrome-setup
37-
npm init -y
38-
npm set //npm.pkg.github.com/:_authToken="${{ github.token }}"
39-
npm i @devexpress/[email protected] --registry=https://npm.pkg.github.com
40-
sudo dpkg -i node_modules/@devexpress/devextreme-google-chrome-image/google-chrome-stable_121.0.6167.184-1_amd64.deb
43+
gh release download 1.0.0 --repo DevExpress/tmp-chrome-image --pattern "*.deb" --dir ./google-chrome-setup
44+
sudo dpkg -i google-chrome-setup/google-chrome-stable_121.0.6167.184-1_amd64.deb
4145
google-chrome-stable --version
42-
popd
4346
4447
rm -rf google-chrome-setup
4548
else

.github/workflows/demos_visual_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ jobs:
8383
uses: ./.github/actions/setup-chrome
8484
with:
8585
chrome-version: '121.0.6167.184'
86+
token: ${{ secrets.TMP_CHROME_PAT }}
8687

8788
- name: Use Node.js
8889
uses: actions/setup-node@v4

.github/workflows/demos_visual_tests_frameworks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ jobs:
365365
uses: ./.github/actions/setup-chrome
366366
with:
367367
chrome-version: '121.0.6167.184'
368+
token: ${{ secrets.TMP_CHROME_PAT }}
368369

369370
- name: Use Node.js
370371
uses: actions/setup-node@v4

.github/workflows/playgrounds_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
uses: ./.github/actions/setup-chrome
9494
with:
9595
chrome-version: '121.0.6167.184'
96+
token: ${{ secrets.TMP_CHROME_PAT }}
9697

9798
- name: Use Node.js
9899
uses: actions/setup-node@v4

.github/workflows/qunit_tests-additional-renovation.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
headless: 'true'
111111
useJQuery: 'false'
112112
useCsp: 'true'
113+
token: ${{ secrets.TMP_CHROME_PAT }}
113114

114115
qunit-tests-performance:
115116
needs: build
@@ -129,6 +130,7 @@ jobs:
129130
useJQuery: 'true'
130131
headless: 'false'
131132
useCsp: 'false'
133+
token: ${{ secrets.TMP_CHROME_PAT }}
132134

133135
qunit-tests-mobile-and-shadow-dom:
134136
needs: build
@@ -186,6 +188,7 @@ jobs:
186188
useShadowDom: ${{ matrix.useShadowDom }}
187189
headless: ${{ matrix.headless }}
188190
useCsp: 'true'
191+
token: ${{ secrets.TMP_CHROME_PAT }}
189192

190193
qunit-tests-firefox:
191194
needs: build
@@ -224,6 +227,7 @@ jobs:
224227
useJQuery: 'true'
225228
headless: 'true'
226229
useCsp: 'true'
230+
token: ${{ secrets.TMP_CHROME_PAT }}
227231

228232
qunit-tests-common:
229233
needs: build
@@ -248,6 +252,7 @@ jobs:
248252
useJQuery: 'true'
249253
headless: 'true'
250254
useCsp: 'true'
255+
token: ${{ secrets.TMP_CHROME_PAT }}
251256

252257
qunit-tests-no-csp:
253258
needs: build
@@ -272,6 +277,7 @@ jobs:
272277
useJQuery: 'true'
273278
headless: 'true'
274279
useCsp: 'false'
280+
token: ${{ secrets.TMP_CHROME_PAT }}
275281

276282
notify:
277283
runs-on: devextreme-shr2

.github/workflows/qunit_tests-renovation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
with:
9494
constel: ${{ matrix.CONSTEL }}
9595
useCsp: "false"
96+
token: ${{ secrets.TMP_CHROME_PAT }}
9697

9798
notify:
9899
runs-on: devextreme-shr2

.github/workflows/run-testcafe-on-gh-pages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
uses: ./devextreme/.github/actions/setup-chrome
5656
with:
5757
chrome-version: '121.0.6167.184'
58+
token: ${{ secrets.TMP_CHROME_PAT }}
5859

5960
- uses: pnpm/action-setup@v3
6061
with:
@@ -76,7 +77,7 @@ jobs:
7677
run: |
7778
corepack enable
7879
pnpm install
79-
80+
8081
- name: Run TestCafe tests
8182
working-directory: devextreme/apps/demos
8283
env:

.github/workflows/testcafe_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ jobs:
177177
uses: ./.github/actions/setup-chrome
178178
with:
179179
chrome-version: '121.0.6167.184'
180+
token: ${{ secrets.TMP_CHROME_PAT }}
180181

181182
- name: Use Node.js
182183
uses: actions/setup-node@v4

.github/workflows/wrapper_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: ./.github/actions/setup-chrome
2626
with:
2727
chrome-version: '121.0.6167.184'
28+
token: ${{ secrets.TMP_CHROME_PAT }}
2829

2930
- name: Use Node.js
3031
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)