@@ -27,31 +27,24 @@ jobs:
2727 env :
2828 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2929 steps :
30- - uses : actions/checkout@v6
30+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3131
32- - uses : actions/setup-node@v6
32+ - uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
33+ name : Install pnpm
3334 with :
34- node-version : 22
35-
36- - name : Get yarn cache directory path
37- id : yarn-cache-dir-path
38- run : echo "dir=$(yarn cache dir)" >> ${env:GITHUB_OUTPUT}
35+ run_install : false
3936
40- - uses : actions/cache@v5
41- id : yarn-cache
37+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
4238 with :
43- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
44- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
45- restore-keys : |
46- ${{ runner.os }}-yarn-
39+ node-version : 22
40+ cache : ' pnpm'
4741
48- - name : yarn
49- run : |
50- yarn --frozen-lockfile --network-timeout 180000
42+ - name : Execute pnpm
43+ run : pnpm install
5144
5245 - name : Run Build
5346 timeout-minutes : 20
54- run : yarn build
47+ run : pnpm build
5548
5649 darwin :
5750 name : macOS
@@ -60,64 +53,52 @@ jobs:
6053 env :
6154 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6255 steps :
63- - uses : actions/checkout@v6
56+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6457
65- - uses : actions/setup-node@v6
58+ - uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
59+ name : Install pnpm
6660 with :
67- node-version : 22
68-
69- - name : Get yarn cache directory path
70- id : yarn-cache-dir-path
71- run : echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
61+ run_install : false
7262
73- - uses : actions/cache@v5
74- id : yarn-cache
63+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
7564 with :
76- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
77- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
78- restore-keys : |
79- ${{ runner.os }}-yarn-
65+ node-version : 22
66+ cache : ' pnpm'
8067
81- - name : Execute yarn
82- if : ${{ steps.cacheNodeModules.outputs.cache-hit != 'true' }}
83- run : yarn --frozen-lockfile --network-timeout 180000
68+ - name : Execute pnpm
69+ run : pnpm install
8470
8571 - name : Run Build
8672 timeout-minutes : 20
87- run : yarn build
73+ run : pnpm build
8874
8975 lint-format-unit :
9076 name : linter, formatters and unit tests
9177 runs-on : ubuntu-24.04
9278 steps :
93- - uses : actions/checkout@v6
94- - uses : actions/setup-node@v6
95- with :
96- node-version : 22
79+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
9780
98- - name : Get yarn cache directory path
99- id : yarn-cache-dir-path
100- run : echo "dir=$(yarn cache dir)" >> ${GITHUB_OUTPUT}
81+ - uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
82+ name : Install pnpm
83+ with :
84+ run_install : false
10185
102- - uses : actions/cache@v5
103- id : yarn-cache
86+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
10487 with :
105- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
106- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
107- restore-keys : |
108- ${{ runner.os }}-yarn-
88+ node-version : 22
89+ cache : ' pnpm'
10990
110- - name : Execute yarn
111- run : yarn --frozen-lockfile
91+ - name : Execute pnpm
92+ run : pnpm install
11293
11394 - name : Run linter
114- run : yarn lint:check
95+ run : pnpm lint:check
11596
11697 - name : Run formatter
117- run : yarn format:check
98+ run : pnpm format:check
11899
119100 - name : Run Tests
120- run : yarn test
101+ run : pnpm test
121102
122103 e2e-tests :
123104 name : e2e tests for ${{ matrix.os }}
@@ -131,35 +112,35 @@ jobs:
131112 steps :
132113
133114 - name : Checkout crc extension
134- uses : actions/checkout@v6
115+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
135116 with :
136117 path : crc-extension
137118
138119 - name : Checkout podman desktop
139- uses : actions/checkout@v6
120+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
140121 with :
141122 repository : podman-desktop/podman-desktop
142123 ref : main
143124 path : podman-desktop
144125
145126 - name : Checkout sso extension (crc-extension dependency)
146- uses : actions/checkout@v6
127+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
147128 if : matrix.os == 'windows-2025' || matrix.os == 'macos-26'
148129 with :
149130 repository : redhat-developer/podman-desktop-redhat-account-ext
150131 ref : main
151132 path : sso-extension
152133
153- - name : Install node
154- uses : actions/setup-node@v6
134+ - uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
135+ name : Install pnpm
155136 with :
156- node-version : 22
137+ run_install : false
138+ package_json_file : ./crc-extension/package.json
157139
158- - name : Install pnpm
159- uses : pnpm/action-setup@v4
140+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
160141 with :
161- run_install : false
162- package_json_file : ./podman-desktop/package.json
142+ node-version : 22
143+ cache : ' pnpm '
163144
164145 - name : Install & build Podman Desktop for E2E tests
165146 working-directory : ./podman-desktop
@@ -206,7 +187,7 @@ jobs:
206187 if : matrix.os == 'ubuntu-24.04'
207188 working-directory : ./crc-extension
208189 run : |
209- yarn install --check-files
190+ pnpm install --check-files
210191 # build crc extension
211192 podman build -t openshift_local_image . -f ./oci/Containerfile.multistage
212193 CONTAINER_ID_CRC=$(podman create localhost/openshift_local_image --entrypoint "")
@@ -229,10 +210,10 @@ jobs:
229210 shell : bash
230211 working-directory : ./crc-extension
231212 run : |
232- yarn install --check-files
213+ pnpm install --check-files
233214 # -- following https://github.com/crc-org/crc-extension/blob/main/oci/Containerfile.multistage --
234215 # build extension
235- yarn build
216+ pnpm build
236217 # make expected test folders
237218 mkdir -p tests/playwright/output/crc-tests-pd/plugins/crcextension
238219 mkdir -p tests/playwright/output/crc-tests-pd/plugins/ssoextension
@@ -244,10 +225,10 @@ jobs:
244225 working-directory : ./crc-extension
245226 shell : pwsh
246227 run : |
247- yarn install --check-files
228+ pnpm install --check-files
248229 # -- following https://github.com/crc-org/crc-extension/blob/main/oci/Containerfile.multistage --
249230 # build extension
250- yarn build
231+ pnpm build
251232 # make expected test folders
252233 mkdir tests\playwright\output\crc-tests-pd\plugins
253234 mkdir tests\playwright\output\crc-tests-pd\plugins\crcextension
@@ -284,7 +265,7 @@ jobs:
284265 working-directory : ./crc-extension
285266 env :
286267 PODMAN_DESKTOP_ARGS : ${{ github.workspace }}/podman-desktop
287- run : yarn test:e2e
268+ run : pnpm test:e2e
288269
289270 - name : Publish Test Report
290271 uses : mikepenz/action-junit-report@v6
0 commit comments