mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
25400750fb
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.4.1 to 3.5.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3.4.1...v3.5.0) Closes gh-5133 --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
73 lines
2.4 KiB
YAML
73 lines
2.4 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Node.js 10 is required by jQuery infra
|
|
# Do not remove 16.x until jsdom tests are re-enabled on newer Node.js versions.
|
|
NODE_VERSION: [10.x, 12.x, 14.x, 16.x, 17.x]
|
|
NPM_SCRIPT: ["test:browserless"]
|
|
include:
|
|
- NAME: "Browser tests: full build, Chrome & Firefox stable"
|
|
NODE_VERSION: "16.x"
|
|
NPM_SCRIPT: "test:browser"
|
|
BROWSERS: "ChromeHeadless,FirefoxHeadless"
|
|
- NAME: "Browser tests: slim build, Chrome stable"
|
|
NODE_VERSION: "16.x"
|
|
NPM_SCRIPT: "test:slim"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: no-deprecated build, Chrome stable"
|
|
NODE_VERSION: "16.x"
|
|
NPM_SCRIPT: "test:no-deprecated"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: ES modules build, Chrome stable"
|
|
NODE_VERSION: "16.x"
|
|
NPM_SCRIPT: "test:esmodules"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: AMD build, Chrome stable"
|
|
NODE_VERSION: "16.x"
|
|
NPM_SCRIPT: "test:amd"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: full build, Firefox ESR"
|
|
NODE_VERSION: "16.x"
|
|
NPM_SCRIPT: "test:browser"
|
|
BROWSERS: "FirefoxHeadless"
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-
|
|
|
|
- name: Use Node.js ${{ matrix.NODE_VERSION }}
|
|
uses: actions/setup-node@v3.5.0
|
|
with:
|
|
node-version: ${{ matrix.NODE_VERSION }}
|
|
|
|
- name: Install firefox ESR
|
|
run: |
|
|
export FIREFOX_SOURCE_URL='https://download.mozilla.org/?product=firefox-esr-latest&lang=en-US&os=linux64'
|
|
wget --no-verbose $FIREFOX_SOURCE_URL -O - | tar -jx -C ${HOME}
|
|
if: "contains(matrix.NAME, 'Firefox ESR')"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
npm install
|
|
|
|
- name: Run tests
|
|
env:
|
|
BROWSERS: ${{ matrix.BROWSERS }}
|
|
run: |
|
|
export PATH=${HOME}/firefox:$PATH
|
|
npm run ${{ matrix.NPM_SCRIPT }}
|