mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
65 lines
1.7 KiB
YAML
65 lines
1.7 KiB
YAML
|
name: Browserstack
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
environment: browserstack
|
||
|
env:
|
||
|
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
|
||
|
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
|
||
|
NODE_VERSION: 20.x
|
||
|
name: ${{ matrix.BROWSER }}
|
||
|
concurrency:
|
||
|
group: ${{ github.workflow }} ${{ matrix.BROWSER }}
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
BROWSER:
|
||
|
- 'IE_11'
|
||
|
- 'Safari_17'
|
||
|
- 'Safari_16'
|
||
|
- 'Chrome_120'
|
||
|
- 'Chrome_119'
|
||
|
- 'Edge_120'
|
||
|
- 'Edge_119'
|
||
|
- 'Firefox_121'
|
||
|
- 'Firefox_120'
|
||
|
- 'Firefox_115'
|
||
|
- '__iOS_17'
|
||
|
- '__iOS_16'
|
||
|
- '__iOS_15'
|
||
|
- 'Opera_106'
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||
|
|
||
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
||
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||
|
with:
|
||
|
node-version: ${{ env.NODE_VERSION }}
|
||
|
|
||
|
- name: Cache
|
||
|
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||
|
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: Build jQuery
|
||
|
run: npm run build:all
|
||
|
|
||
|
- name: Pretest script
|
||
|
run: npm run pretest
|
||
|
|
||
|
- name: Run tests
|
||
|
run: npm run test:unit -- -v --browserstack "${{ matrix.BROWSER }}" --retries 3
|