chore(deps-dev): bump semantic-release from 22.0.12 to 24.2.0 (#1011) #3902
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
Test: | |
if: "!contains(github.event.head_commit.message, 'SKIP CI')" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- lts/-1 | |
- lts/* | |
- latest | |
react: [16, 17, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Install React <18 deps | |
if: matrix.react == '16' || matrix.react == '17' | |
run: npm i react@${{ matrix.react }} react-dom@${{ matrix.react }} @testing-library/react@12 | |
- name: Run tests | |
run: npm test | |
visual: | |
name: 'Visual Tests' | |
if: "!contains(github.event.head_commit.message, 'SKIP CI')" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
react: [18] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run visual tests (node ${{ matrix.node-version }}) | |
run: make ci | |
- name: Upload snapshot diffs | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: snapshots-diffs | |
path: __tests__/browser/__image_snapshots__/__diff_output__ | |
- name: Update regression test snapshots | |
if: ${{ failure() }} | |
run: make updateSnapshot | |
- name: Upload snapshots | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: image-snapshots | |
path: __tests__/browser/__image_snapshots__/ |