Tests: conslidate GH actions runs; separate git & stable jQuery versions

- also add hard retries to runs

Closes gh-2260
This commit is contained in:
Timmy Willison 2024-06-05 09:41:25 -04:00 committed by GitHub
parent 0326f1ee86
commit d45638abfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,18 +17,17 @@ env:
jobs: jobs:
build-and-test: build-and-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: ${{ matrix.BROWSER }} - jQuery ${{ matrix.JQUERY }} name: |
${{ matrix.BROWSER }} | ${{ matrix.JQUERYS.name }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
BROWSER: [chrome, firefox] BROWSER: [chrome, firefox]
JQUERY: JQUERYS:
- "git" - versions: --jquery git --jquery 3.x-git
- "3.x-git" name: jQuery git
- "3.7.1" - versions: --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
- "3.6.4" name: jQuery stable
- "2.2.4"
- "1.12.4"
steps: steps:
- name: Checkout - name: Checkout
@ -57,21 +56,23 @@ jobs:
run: npm run build run: npm run build
- name: Test - name: Test
run: npm run test:unit -- -h -b ${{ matrix.BROWSER }} --jquery ${{ matrix.JQUERY }} --retries 3 run: |
npm run test:unit -- -h -b ${{ matrix.BROWSER }} \
${{ matrix.JQUERYS.versions }} \
--retries 3 --hard-retries 1
edge: edge:
runs-on: windows-latest runs-on: windows-latest
name: edge - jQuery ${{ matrix.JQUERY }} name: |
edge | ${{ matrix.JQUERYS.name }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
JQUERY: JQUERYS:
- "git" - versions: --jquery git --jquery 3.x-git
- "3.x-git" name: jQuery git
- "3.7.1" - versions: --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
- "3.6.4" name: jQuery stable
- "2.2.4"
- "1.12.4"
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@ -96,21 +97,23 @@ jobs:
run: npm run build run: npm run build
- name: Test - name: Test
run: npm run test:unit -- -h -b edge --jquery ${{ matrix.JQUERY }} --retries 3 run: |
npm run test:unit -- -h -b edge `
${{ matrix.JQUERYS.versions }} `
--retries 3 --hard-retries 1
safari: safari:
runs-on: macos-latest runs-on: macos-latest
name: safari - jQuery ${{ matrix.JQUERY }} name: |
safari | ${{ matrix.JQUERYS.name }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
JQUERY: JQUERYS:
- "git" - versions: --jquery git --jquery 3.x-git
- "3.x-git" name: jQuery git
- "3.7.1" - versions: --jquery 3.7.1 --jquery 3.6.4 --jquery 2.2.4 --jquery 1.12.4
- "3.6.4" name: jQuery stable
- "2.2.4"
- "1.12.4"
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
@ -135,4 +138,7 @@ jobs:
run: npm run build run: npm run build
- name: Test - name: Test
run: npm run test:unit -- -b safari --jquery ${{ matrix.JQUERY }} --retries 3 run: |
npm run test:unit -- -b safari \
${{ matrix.JQUERYS.versions }} \
--retries 3 --hard-retries 1