Skip to content

Commit

Permalink
test: add test for stylelint v15 (#469)
Browse files Browse the repository at this point in the history
* test: add test for stylelint v15

* fix lint error

* fix test

* fixx test case

* fix test case

* fix test

* fix test case

* test

* add comment
  • Loading branch information
ota-meshi authored Aug 16, 2023
1 parent 945106b commit c82b1dd
Show file tree
Hide file tree
Showing 24 changed files with 766 additions and 479 deletions.
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

0 comments on commit c82b1dd

Please sign in to comment.