Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1b172b9

Browse files
committedFeb 21, 2024·
use matrix include mode
1 parent deaee22 commit 1b172b9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
 

‎.github/workflows/ci.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
node_version: [ 18, 20 ]
20-
prettier_version: [ "^2.3.0", "^3.0.0" ]
21-
eslint_plugin_prettier_version: [ "^4.0.0", "^5.0.0" ]
22-
exclude:
20+
include:
2321
- prettier_version: ^2.3.0
24-
eslint_plugin_prettier_version: ^5.0.0
25-
- prettier_version: ^3.0.0
2622
eslint_plugin_prettier_version: ^4.0.0
23+
- prettier_version: ^3.0.0
24+
eslint_plugin_prettier_version: ^5.0.0
2725
steps:
2826
- name: Checkout
2927
uses: actions/checkout@v4
@@ -38,7 +36,7 @@ jobs:
3836
run: yarn add prettier@${{ matrix.prettier_version }}
3937

4038
- name: Install Eslint plugin for prettier
41-
run: yarn add -D eslint-plugin-prettier@${{ matrix.eslint_plugin_prettier_version }}
39+
run: yarn add --dev eslint-plugin-prettier@${{ matrix.eslint_plugin_prettier_version }}
4240

4341
- name: Run Test
4442
run: yarn test

0 commit comments

Comments
 (0)
Please sign in to comment.