@@ -20,12 +20,13 @@ jobs:
2020 uses : actions/checkout@v3
2121 with :
2222 fetch-depth : 0
23+ - uses : pnpm/action-setup@v4
2324 - uses : actions/setup-node@v3
2425 with :
2526 node-version-file : .nvmrc
26- cache : npm
27+ cache : pnpm
2728 - name : Install package dependencies
28- run : npm ci
29+ run : pnpm install --frozen-lockfile
2930 - name : Run commitlint
3031 uses : wagoid/commitlint-github-action@v5
3132 lint :
@@ -34,30 +35,32 @@ jobs:
3435 steps :
3536 - name : Checkout
3637 uses : actions/checkout@v3
38+ - uses : pnpm/action-setup@v4
3739 - uses : actions/setup-node@v3
3840 with :
3941 node-version-file : .nvmrc
40- cache : npm
42+ cache : pnpm
4143 - name : Install package dependencies
42- run : npm ci
44+ run : pnpm install --frozen-lockfile
4345 - name : Run Biome
44- run : npm run lint
46+ run : pnpm run lint
4547 - name : Run Knip
46- run : npm run knip
48+ run : pnpm run check:deps
4749 build-check :
4850 name : Build check
4951 runs-on : ubuntu-latest
5052 steps :
5153 - name : Checkout
5254 uses : actions/checkout@v3
55+ - uses : pnpm/action-setup@v4
5356 - uses : actions/setup-node@v3
5457 with :
5558 node-version-file : .nvmrc
56- cache : npm
59+ cache : pnpm
5760 - name : Install package dependencies
58- run : npm ci
61+ run : pnpm install --frozen-lockfile
5962 - name : Run build check
60- run : npm run build:check
63+ run : pnpm run build:check
6164 test-units-and-cover :
6265 name : Unit Tests And Coverage
6366 runs-on : ubuntu-latest
@@ -68,16 +71,17 @@ jobs:
6871 steps :
6972 - name : Checkout
7073 uses : actions/checkout@v3
74+ - uses : pnpm/action-setup@v4
7175 - uses : actions/setup-node@v3
7276 with :
7377 node-version-file : .nvmrc
74- cache : npm
78+ cache : pnpm
7579 - name : Install package dependencies
76- run : npm ci
80+ run : pnpm install --frozen-lockfile
7781 - name : Run unit tests
78- run : npm run test:unit
82+ run : pnpm run test:unit
7983 - name : Run coverage for unit tests
80- run : npm run cover:unit
84+ run : pnpm run cover:unit
8185 if : ${{ always() }}
8286 - uses : actions/upload-artifact@v4
8387 name : Upload coverage report for unit tests
@@ -103,11 +107,12 @@ jobs:
103107 steps :
104108 - name : Checkout
105109 uses : actions/checkout@v3
110+ - uses : pnpm/action-setup@v4
106111 - uses : actions/setup-node@v3
107112 with :
108113 node-version-file : .nvmrc
109114 - name : Run integration tests
110- run : npm run docker:test:integration
115+ run : pnpm run docker:test:integration
111116 - name : Generate Cucumber report annotations
112117 uses : deblockt/cucumber-report-annotations-action@v1.7
113118 if : ${{ always() }}
@@ -116,7 +121,7 @@ jobs:
116121 access-token : ${{ secrets.GITHUB_TOKEN }}
117122 path : .test-reports/integration/report.json
118123 - name : Run coverage for integration tests
119- run : npm run docker:cover:integration
124+ run : pnpm run docker:cover:integration
120125 - name : Coveralls
121126 uses : coverallsapp/github-action@master
122127 if : ${{ always() }}
@@ -151,11 +156,12 @@ jobs:
151156 uses : actions/checkout@v3
152157 with :
153158 fetch-depth : 0
159+ - uses : pnpm/action-setup@v4
154160 - uses : actions/setup-node@v3
155161 with :
156162 node-version-file : .nvmrc
157- cache : npm
163+ cache : pnpm
158164 - name : Install package dependencies
159- run : npm ci
165+ run : pnpm install --frozen-lockfile
160166 - name : Check for changeset
161- run : npx changeset status --since origin/${{ github.base_ref }}
167+ run : pnpm exec changeset status --since origin/${{ github.base_ref }}
0 commit comments