@@ -19,12 +19,16 @@ jobs:
1919 steps :
2020 - name : Checkout
2121 uses : actions/checkout@v5
22+ - name : Install pnpm
23+ uses : pnpm/action-setup@v4
2224 - name : Install Node.js
2325 uses : actions/setup-node@v6
26+ with :
27+ cache : pnpm
2428 - name : Install Packages
25- run : npm install --legacy-peer-deps
29+ run : pnpm install --legacy-peer-deps
2630 - name : Lint
27- run : npm run lint
31+ run : pnpm run lint
2832
2933 test :
3034 name : Test
@@ -35,46 +39,56 @@ jobs:
3539 steps :
3640 - name : Checkout
3741 uses : actions/checkout@v5
42+ - name : Install pnpm
43+ uses : pnpm/action-setup@v4
3844 - name : Install Node.js v${{ matrix.node }}
3945 uses : actions/setup-node@v6
4046 with :
4147 node-version : ${{ matrix.node }}
48+ cache : pnpm
4249 - name : Install Packages
43- run : npm install
50+ run : pnpm install
4451 - name : Test
45- run : npm test
52+ run : pnpm test
4653
4754 test-with-eslint-v8 :
4855 name : Test with ESLint v8
4956 runs-on : ubuntu-latest
5057 steps :
5158 - name : Checkout
5259 uses : actions/checkout@v5
60+ - name : Install pnpm
61+ uses : pnpm/action-setup@v4
5362 - name : Install Node.js v18
5463 uses : actions/setup-node@v6
5564 with :
5665 node-version : 18
66+ cache : pnpm
5767 - name : Install Packages
58- run : npm install
68+ run : pnpm install
5969 - name : Install ESLint v8
60- run : npm install --save-dev eslint@8 --force
70+ run : pnpm install --save-dev eslint@8 --force
6171 - name : Test
62- run : npm test
72+ run : pnpm test
6373
6474 test-without-eslint-stylistic :
6575 name : Test without ESLint Stylistic
6676 runs-on : ubuntu-latest
6777 steps :
6878 - name : Checkout
6979 uses : actions/checkout@v5
80+ - name : Install pnpm
81+ uses : pnpm/action-setup@v4
7082 - name : Install Node.js
7183 uses : actions/setup-node@v6
84+ with :
85+ cache : pnpm
7286 - name : Install Packages
73- run : npm install
87+ run : pnpm install
7488 - name : Uninstall @stylistic/eslint-plugin
75- run : npm uninstall @stylistic/eslint-plugin
89+ run : pnpm uninstall @stylistic/eslint-plugin
7690 - name : Test
77- run : npm test
91+ run : pnpm test
7892
7993 test-with-old-eslint-stylistic :
8094 name : Test with old ESLint Stylistic
@@ -85,26 +99,34 @@ jobs:
8599 steps :
86100 - name : Checkout
87101 uses : actions/checkout@v5
102+ - name : Install pnpm
103+ uses : pnpm/action-setup@v4
88104 - name : Install Node.js
89105 uses : actions/setup-node@v6
106+ with :
107+ cache : pnpm
90108 - name : Install Packages
91- run : npm install
109+ run : pnpm install
92110 - name : Install @stylistic/eslint-plugin v${{ matrix.stylistic }}
93- run : npm install -D @stylistic/eslint-plugin@${{ matrix.stylistic }} --force
111+ run : pnpm install -D @stylistic/eslint-plugin@${{ matrix.stylistic }} --force
94112 - name : Test
95- run : npm test
113+ run : pnpm test
96114
97115 test-with-typescript-eslint-v7 :
98116 name : Test with typescript-eslint v7
99117 runs-on : ubuntu-latest
100118 steps :
101119 - name : Checkout
102120 uses : actions/checkout@v5
121+ - name : Install pnpm
122+ uses : pnpm/action-setup@v4
103123 - name : Install Node.js
104124 uses : actions/setup-node@v6
125+ with :
126+ cache : pnpm
105127 - name : Install Packages
106- run : npm install
128+ run : pnpm install
107129 - name : Install @typescript-eslint/parser v7
108- run : npm install -D @typescript-eslint/parser@7 --force
130+ run : pnpm install -D @typescript-eslint/parser@7 --force
109131 - name : Test
110- run : npm test
132+ run : pnpm test
0 commit comments