Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add test for stylelint v15 #469

Merged
merged 9 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
fail-fast: false
matrix:
language: ['javascript']
node-version: [14.x]
node-version: [18]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x]
node-version: [18]

steps:
- name: Checkout
Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ env:

jobs:
test:
name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
name: Test for Stylelint ${{ matrix.stylelint }} on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [14]
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18]
os: [ubuntu-latest, macos-latest]
stylelint: [14, 15]
include:
- stylelint: 15
node-version: 14 # For some reason jest-runner-vscode doesn't work well with Node v18 and Windows.
os: windows-latest
- stylelint: 14
node-version: 14 # For some reason jest-runner-vscode doesn't work well with Node v18 and Windows.
os: windows-latest
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -51,6 +59,14 @@ jobs:
- 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@v2
id: vscode-cache
Expand Down
Loading
Loading