aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/node.js.yml
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-09-09 18:24:28 +0200
committerGitHub <noreply@github.com>2024-09-09 18:24:28 +0200
commit6d78c0768d9aa6ba213678724c89af69a1958df6 (patch)
tree9a4b65317ac5af425710f8d9496cf05bfcbca0d9 /.github/workflows/node.js.yml
parent4b7ecbad24463c875f03ef4c7a7d307a091f93fd (diff)
downloadjquery-6d78c0768d9aa6ba213678724c89af69a1958df6.tar.gz
jquery-6d78c0768d9aa6ba213678724c89af69a1958df6.zip
Tests: Run tests in Edge in IE mode in GitHub Actions
While Edge in IE mode is not guaranteed to match IE 11 in every aspect, in practice it generally does. Testing in this mode in GitHub Actions will allow us to catch most IE-breaking issues at the PR level. This change also adds missing npm scripts: `test:chrome`, `test:edge` & `test:ie`. Closes gh-5540
Diffstat (limited to '.github/workflows/node.js.yml')
-rw-r--r--.github/workflows/node.js.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
index 4b387cbe7..36dcf9367 100644
--- a/.github/workflows/node.js.yml
+++ b/.github/workflows/node.js.yml
@@ -87,6 +87,34 @@ jobs:
- name: Run tests
run: npm run ${{ matrix.NPM_SCRIPT }}
+ ie:
+ runs-on: windows-latest
+ env:
+ NODE_VERSION: 20.x
+ name: test:ie - IE
+ steps:
+ - name: Checkout
+ uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+
+ - name: Use Node.js ${{ env.NODE_VERSION }}
+ uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+
+ - name: Cache
+ uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
+ 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 install
+
+ - name: Run tests in Edge in IE mode
+ run: npm run test:ie
+
safari:
runs-on: macos-latest
env: