Skip to content

chore(deps-dev): bump eslint-plugin-jest from 27.9.0 to 28.5.0 #793

chore(deps-dev): bump eslint-plugin-jest from 27.9.0 to 28.5.0

chore(deps-dev): bump eslint-plugin-jest from 27.9.0 to 28.5.0 #793

Workflow file for this run

name: Testing
on:
push:
branches:
- main
- v1.*
pull_request:
branches:
- '**'
jobs:
test:
name: Test for Stylelint ${{ matrix.stylelint }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
stylelint: [14, 15]
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install latest npm
# TODO: npm 10 requires Node.js 18.17 or later.
# run: npm install --global npm@latest
run: npm install --global npm@9
- name: Install dependencies
run: npm ci
- name: Install stylelint v15
run: npm i -D stylelint@^15
if: matrix.stylelint == 15
- name: Install stylelint v14
run: npm i -D stylelint@^14 stylelint-scss@^4.3.0
if: matrix.stylelint == 14
- name: Cache VS Code binaries
uses: actions/cache@v4
id: vscode-cache
with:
path: .vscode-test
key: ${{ runner.os }}-vscode-${{ hashFiles('test/e2e/jest-runner-vscode.config.js') }}
restore-keys: |
${{ runner.os }}-vscode-
- name: Download VS Code
run: npm run download-vscode
- name: Run unit tests
run: npm run test:unit -- --coverage
- name: Run integration tests
run: npm run test:integration -- --coverage
- name: Run end-to-end tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm run test:e2e -- --silent
- name: Run end-to-end tests (non-Linux)
if: runner.os != 'Linux'
run: npm run test:e2e -- --silent