Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
[*.{json,yml}]
indent_style = space
indent_size = 2
43 changes: 18 additions & 25 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,25 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: '**/package-lock.json'

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci

- name: Install dependencies
run: |
npm install

- name: Run tests
env:
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
run: |
export PATH=${HOME}/firefox:$PATH
npm test
- name: Run tests
env:
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
run: |
export PATH=${HOME}/firefox:$PATH
npm test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
53 changes: 39 additions & 14 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = function( grunt ) {
browsers = {
phantom: [ "PhantomJS" ],
desktop: [],
desktop2: [],
android: [],
ios: [],
old: {
Expand All @@ -31,31 +32,52 @@ module.exports = function( grunt ) {
// See https://github.com/jquery/sizzle/wiki/Sizzle-Documentation#browsers

browsers.desktop = [
"bs_chrome-45", // shares V8 with Node.js v4 LTS
"bs_chrome-68", // shares V8 with Node.js v10.24.1 LTS
"bs_chrome-84", // shares V8 with Node.js v14.20.0 LTS
"bs_chrome-109", "bs_chrome-110",
"bs_chrome-124", // shares V8 with Node.js v22.21.1 LTS
"bs_chrome-136", // shares V8 with Node.js v24.12.0 LTS
"bs_chrome-142", "bs_chrome-143",

// Firefox ESR + last 2 Firefox versions
"bs_firefox-60", "bs_firefox-68", "bs_firefox-78", "bs_firefox-91", "bs_firefox-102",
"bs_firefox-108", "bs_firefox-109",
// Firefox ESR + last 2 Firefox
"bs_firefox-115", "bs_firefox-128", "bs_firefox-140",
"bs_firefox-145", "bs_firefox-146",

"bs_edge-15", "bs_edge-16", "bs_edge-17", "bs_edge-18",
"bs_edge-108", "bs_edge-109",
// last Edge Legacy + last 2 Edge
"bs_edge-18", "bs_edge-142", "bs_edge-143",

"bs_ie-9", "bs_ie-10", "bs_ie-11",

"bs_opera-94", "bs_opera-95",
"bs_opera-123", "bs_opera-124",

"bs_safari-15", "bs_safari-16", "bs_safari-17",
"bs_safari-18", "bs_safari-26"
];

browsers.desktop2 = [
"bs_chrome-45", // shares V8 with Node.js v4 LTS
"bs_chrome-68", // shares V8 with Node.js v10.24.1 LTS
"bs_chrome-84", // shares V8 with Node.js v14.21.3 LTS
"bs_chrome-102", // shares V8 with Node.js v18.20.8 LTS
"bs_chrome-113", // shares V8 with Node.js v20.19.6 LTS


// Firefox ESR
"bs_firefox-60", "bs_firefox-68", "bs_firefox-78", "bs_firefox-91",
"bs_firefox-102",

// Edge Legacy <18
"bs_edge-15", "bs_edge-16", "bs_edge-17",

// Real Safari 6.1 and 7.0 are not available
"bs_safari-6.0", "bs_safari-8.0", "bs_safari-9.1", "bs_safari-10.1",
"bs_safari-11.1", "bs_safari-12.1", "bs_safari-13.1", "bs_safari-14",
"bs_safari-15", "bs_safari-16"
"bs_safari-11.1", "bs_safari-12.1", "bs_safari-13.1", "bs_safari-14"
];

browsers.ios = [
"bs_ios-9.3", "bs_ios-10", "bs_ios-11", "bs_ios-12", "bs_ios-13",
"bs_ios-14", "bs_ios-15", "bs_ios-16"

// No longer available on BrowserStack
// "bs_ios-9.3", "bs_ios-10",

"bs_ios-11", "bs_ios-12", "bs_ios-13", "bs_ios-14", "bs_ios-15",
"bs_ios-16", "bs_ios-17", "bs_ios-18", "bs_ios-26"
];
browsers.android = [
"bs_android-4.0", "bs_android-4.1", "bs_android-4.2",
Expand Down Expand Up @@ -201,6 +223,9 @@ module.exports = function( grunt ) {
desktop: {
browsers: browsers.desktop
},
desktop2: {
browsers: browsers.desktop2
},
android: {
browsers: browsers.android
},
Expand Down
7 changes: 5 additions & 2 deletions tasks/karma-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ module.exports = function( grunt ) {
const done = this.async();

const tasks = isBrowserStack ? [
"karma:phantom", "karma:desktop",
"karma:phantom", "karma:desktop", "karma:desktop2",

"karma:oldIe", "karma:oldFirefox", "karma:oldChrome",
"karma:oldSafari", "karma:oldOpera",

"karma:ios", "karma:oldIos"
"karma:ios"

// BrowserStack no longer shares old iOS simulators
// "karma:oldIos",

// See #314 :-(
// "karma:android", "karma:oldAndroid"
Expand Down
Loading