@@ -11,52 +11,71 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v3
14+ - uses : pnpm/action-setup@v2
1415 - uses : actions/setup-node@v3
1516 - name : Install Packages
16- run : yarn install
17+ run : pnpm install
1718 - name : Lint
1819 run : |+
19- yarn build
20- yarn lint
20+ pnpm run build
21+ pnpm run lint
2122 build :
2223 runs-on : ubuntu-latest
2324 steps :
2425 - uses : actions/checkout@v3
26+ - uses : pnpm/action-setup@v2
2527 - uses : actions/setup-node@v3
2628 - name : Install Packages
27- run : yarn install
29+ run : pnpm install
2830 - name : Build
2931 run : |+
30- yarn update
31- yarn build
32+ pnpm run update
33+ pnpm run build
3234 test :
3335 name : " Test for ESLint ${{ matrix.eslint }} on ${{ matrix.node }} OS: ${{matrix.os}}"
3436 runs-on : ${{ matrix.os }}
3537 strategy :
3638 matrix :
3739 os : [ubuntu-latest]
3840 eslint : [7, 8]
39- node : [14, 16, 17, 18]
41+ node : [14, 16, 17, 18, 20 ]
4042 steps :
4143 - name : Checkout
4244 uses : actions/checkout@v3
45+ - uses : pnpm/action-setup@v2
4346 - name : Setup Node.js ${{ matrix.node }}
4447 uses : actions/setup-node@v3
4548 with :
4649 node-version : ${{ matrix.node }}
4750 - name : Remove @sveltejs/kit # Remove @sveltejs/kit because postinstall fails on old node.
48- # Use npm because yarn remove needs the lock file.
4951 run : |+
50- npm uninstall @sveltejs/kit --legacy-peer-deps
52+ pnpm rm @sveltejs/kit
5153 rm -rf node_modules
5254 - name : Install ESLint ${{ matrix.eslint }}
5355 run : |+
54- yarn add -D eslint@${{ matrix.eslint }} --ignore-engines
56+ pnpm install -D eslint@${{ matrix.eslint }}
5557 rm -rf node_modules
58+ rm -rf pnpm-lock.yaml
5659 if : matrix.eslint != 8
5760 - name : Install Packages
58- run : yarn install --ignore-engines
61+ run : pnpm install
5962 - name : Test
60- run : yarn test
63+ run : pnpm run test
6164 - name : Type Coverage
62- run : yarn typecov
65+ run : pnpm run typecov
66+ update-resources :
67+ runs-on : ubuntu-latest
68+ steps :
69+ - uses : actions/checkout@v3
70+ - uses : pnpm/action-setup@v2
71+ - uses : actions/setup-node@v3
72+ with :
73+ node-version : 18
74+ - name : Install Packages
75+ run : pnpm install
76+ - name : Update resources
77+ run : pnpm run update
78+ - name : Check changes
79+ run : |
80+ git add --all && \
81+ git diff-index --cached HEAD --stat --exit-code
0 commit comments