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
93 changes: 93 additions & 0 deletions .github/workflows/browser-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Browser Tests

on:
pull_request:
push:
branches-ignore: "dependabot/**"

env:
NODE_VERSION: 22.x

jobs:
test:
runs-on: ubuntu-latest
name: ${{ matrix.BROWSER }}
strategy:
fail-fast: false
matrix:
BROWSER: ["chrome", "firefox"]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache
uses: actions/cache@v4
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: Install dependencies
run: npm ci

- name: Run tests
run: npm run test:browser

ie:
runs-on: windows-latest
name: Edge in IE mode
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
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: Install dependencies
run: npm ci

- name: Run tests
shell: cmd
run: npm run test:ie

safari:
runs-on: macos-latest
name: Safari
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
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: Install dependencies
run: npm ci

- name: Run tests
run: npm run test:safari
37 changes: 26 additions & 11 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
name: CI

on: [push, pull_request]
on:
pull_request:
push:
branches-ignore: "dependabot/**"

permissions:
contents: read # to fetch code (actions/checkout)

env:
NODE_VERSION: 22.x

jobs:
build:
node-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/[email protected]
- name: Cache
uses: actions/cache@v4
with:
node-version: 18.x
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: Install dependencies
run: npm install
run: npm ci

- name: Run lint
run: npm run lint

- name: Run tests
run: npm test
- name: Run Node.js tests
run: npm run test:node
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/dist
/node_modules
5 changes: 0 additions & 5 deletions .jscsrc

This file was deleted.

16 changes: 16 additions & 0 deletions jtr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 1

runs:
jquery:
- git
- git.min
- 4.0.0-beta.2
- 4.0.0-beta.2.min
- 3.x-git
- 3.x-git.min
- 3.7.1
- 3.7.1.min
- 3.6.4
- 3.6.4.min

retries: 1
Loading