Skip to content

Commit 757df53

Browse files
authored
Run Chromium tests on Windows (#13)
1 parent 3a5dced commit 757df53

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.github/workflows/js-sdk-ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ jobs:
5555
run: CHROME_BIN=$(which chrome) npm run test:browser:chrome
5656

5757
test-browser-chromium:
58-
runs-on: ubuntu-20.04
58+
runs-on: windows-latest
5959
strategy:
6060
matrix:
61-
chrome: ["520847", "612434", "722278"]
61+
chrome: ["592002", "612439", "722274"]
6262
name: Browser - Chromium ${{ matrix.chrome }} test
6363
steps:
6464
- uses: actions/checkout@v4
@@ -68,6 +68,7 @@ jobs:
6868
node-version: 18
6969

7070
- name: Setup chrome
71+
id: setup-chrome
7172
uses: browser-actions/setup-chrome@latest
7273
with:
7374
chrome-version: ${{ matrix.chrome }}
@@ -76,7 +77,8 @@ jobs:
7677
run: npm install
7778

7879
- name: Test
79-
run: CHROMIUM_BIN=$(which chrome) npm run test:browser:chromium
80+
run: |
81+
$env:CHROMIUM_BIN='${{ steps.setup-chrome.outputs.chrome-path }}'; npm run test:browser:chromium
8082
8183
test-browser-firefox:
8284
# Runner image version is temporarily pinned to `ubuntu-22.04`.
@@ -151,10 +153,10 @@ jobs:
151153
run: CHROME_BIN=$(which chrome) npm run test:chromium-extension:chrome
152154

153155
test-chromium-extension-chromium:
154-
runs-on: ubuntu-20.04
156+
runs-on: windows-latest
155157
strategy:
156158
matrix:
157-
chrome: ["612434", "722278"]
159+
chrome: ["612439", "722274"]
158160
name: Chromium Extension - Chromium ${{ matrix.chrome }} test
159161
steps:
160162
- uses: actions/checkout@v4
@@ -164,6 +166,7 @@ jobs:
164166
node-version: 18
165167

166168
- name: Setup chrome
169+
id: setup-chrome
167170
uses: browser-actions/setup-chrome@latest
168171
with:
169172
chrome-version: ${{ matrix.chrome }}
@@ -172,7 +175,8 @@ jobs:
172175
run: npm install
173176

174177
- name: Test
175-
run: CHROMIUM_BIN=$(which chrome) npm run test:chromium-extension:chromium
178+
run: |
179+
$env:CHROMIUM_BIN='${{ steps.setup-chrome.outputs.chrome-path }}'; npm run test:chromium-extension:chromium
176180
177181
test-cloudflare-worker:
178182
runs-on: ${{ matrix.os }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ This SDK should be compatible with all modern, widely used JS runtimes (executio
220220
The SDK is [tested](https://github.com/configcat/js-unified-sdk/blob/master/.github/workflows/js-sdk-ci.yml) against the following runtimes:
221221
- @configcat/sdk/browser:
222222
- Chrome (stable, latest, beta)
223-
- Chromium (64.0.3282.0, 72.0.3626.0, 80.0.3987.0)
223+
- Chromium (71.0.3556.0, 72.0.3626.0, 80.0.3987.0)
224224
- Firefox (84.0, latest, latest-beta)
225225
- @configcat/sdk/bun:
226226
- Bun (v1.1.0, latest stable) on Windows / Ubuntu / macOS

karma.browser.conf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ module.exports = function(config) {
44
config.set({
55
frameworks: ["mocha", "chai", "webpack"],
66

7+
client: {
8+
mocha: {
9+
timeout: 30000
10+
}
11+
},
12+
713
files: [
814
{ pattern: "test/browser/index.ts", watched: false },
915
{ pattern: "test/data/**", included: false, watched: false, served: true },

karma.chromium-extension.conf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ module.exports = function(config) {
44
config.set({
55
frameworks: ["mocha", "chai", "webpack"],
66

7+
client: {
8+
mocha: {
9+
timeout: 30000
10+
}
11+
},
12+
713
files: [
814
{ pattern: "test/chromium-extension/index.ts", watched: false },
915
{ pattern: "test/data/**", included: false, watched: false, served: true },

0 commit comments

Comments
 (0)