mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
b922eed934
1: Bump actions/cache from 3.3.1 to 3.3.2 Bumps [actions/cache](https://github.com/actions/cache) from 3.3.1 to 3.3.2. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](88522ab9f3...704facf57e
) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... 2: Bump actions/checkout from 3.6.0 to 4.1.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](f43a0e5ff2...b4ffde65f4
) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... 3: Bump actions/setup-node from 3.8.1 to 4.0.0 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.8.1 to 4.0.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](5e21ff4d9b...8f152de45c
) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... 5: Bump @babel/traverse from 7.22.5 to 7.23.2 Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse) --- updated-dependencies: - dependency-name: "@babel/traverse" dependency-type: indirect ... Closes gh-5341 Closes gh-5349 Closes gh-5354 Closes gh-5356 Closes gh-5363 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
87 lines
3.0 KiB
YAML
87 lines
3.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches-ignore: "dependabot/**"
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
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, 16.x, 18.x, 20.x]
|
|
NPM_SCRIPT: ["test:browserless"]
|
|
include:
|
|
- NAME: "Browser tests: full build, Chrome, Firefox & WebKit"
|
|
NODE_VERSION: "18.x"
|
|
NPM_SCRIPT: "test:browser"
|
|
BROWSERS: "ChromeHeadless,FirefoxHeadless,WebkitHeadless"
|
|
- NAME: "Browser tests: slim build, Chrome"
|
|
NODE_VERSION: "18.x"
|
|
NPM_SCRIPT: "test:slim"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: no-deprecated build, Chrome"
|
|
NODE_VERSION: "18.x"
|
|
NPM_SCRIPT: "test:no-deprecated"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: selector-native build, Chrome"
|
|
NODE_VERSION: "18.x"
|
|
NPM_SCRIPT: "test:selector-native"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: AMD build, Chrome stable"
|
|
NODE_VERSION: "18.x"
|
|
NPM_SCRIPT: "test:amd"
|
|
BROWSERS: "ChromeHeadless"
|
|
- NAME: "Browser tests: full build, Firefox ESR"
|
|
NODE_VERSION: "18.x"
|
|
NPM_SCRIPT: "test:browser"
|
|
BROWSERS: "FirefoxHeadless"
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- name: Cache
|
|
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
|
|
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@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.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: Install Playwright dependencies
|
|
run: npx playwright-webkit install-deps
|
|
if: matrix.NPM_SCRIPT == 'test:browser' && contains(matrix.BROWSERS, 'WebkitHeadless')
|
|
|
|
- name: Lint code
|
|
run: npm run build && npm run lint
|
|
if: matrix.NODE_VERSION == '18.x'
|
|
|
|
- name: Run tests
|
|
env:
|
|
BROWSERS: ${{ matrix.BROWSERS }}
|
|
run: |
|
|
export PATH=${HOME}/firefox:$PATH
|
|
npm run ${{ matrix.NPM_SCRIPT }}
|