5454 path : |
5555 node_modules
5656 modules/*/node_modules
57- key : ${{ runner.os }}-node${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('package.json') }}
57+ key : ${{ runner.os }}-node${{matrix.node-version}}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/ package.json') }}
5858
5959 - name : Install Packages
6060 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
@@ -106,7 +106,7 @@ jobs:
106106 path : |
107107 node_modules
108108 modules/*/node_modules
109- key : ${{ runner.os }}-node20-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('package.json') }}
109+ key : ${{ runner.os }}-node20-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/ package.json') }}
110110
111111 - name : Install Packages
112112 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
@@ -152,7 +152,7 @@ jobs:
152152 path : |
153153 node_modules
154154 modules/*/node_modules
155- key : ${{ runner.os }}-node22-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('package.json') }}
155+ key : ${{ runner.os }}-node22-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('**/ package.json') }}
156156
157157 - name : Install Packages
158158 if : steps.lerna-cache.outputs.cache-hit != 'true'
@@ -245,7 +245,7 @@ jobs:
245245 node_modules
246246 modules/*/node_modules
247247 /home/runner/.cache/Cypress
248- key : ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json')}}-${{ hashFiles('package.json') }}
248+ key : ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json')}}-${{ hashFiles('**/ package.json') }}
249249
250250 - name : Install Packages
251251 if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
@@ -270,5 +270,44 @@ jobs:
270270 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
271271 with :
272272 ref : ${{ github.event.pull_request.head.sha }}
273+
274+ - name : Setup Docker compatibility with Podman
275+ run : sudo ln -sf /usr/bin/podman /usr/local/bin/docker
276+
273277 - name : Build BitGoJS Express Docker Image
274- run : podman build .
278+ run : ./scripts/build-docker-express.sh
279+
280+ dockerfile-check :
281+ runs-on : ubuntu-latest
282+
283+ steps :
284+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
285+ with :
286+ ref : ${{ github.event.pull_request.head.sha }}
287+
288+ - name : Setup node 22
289+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
290+ with :
291+ node-version : 22
292+
293+ - name : restore lerna dependencies
294+ id : lerna-cache
295+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
296+ with :
297+ path : |
298+ node_modules
299+ modules/*/node_modules
300+ key : ${{ runner.os }}-node22-${{ hashFiles('yarn.lock') }}-${{ hashFiles('tsconfig.packages.json') }}-${{ hashFiles('package.json') }}
301+
302+ - name : Install Packages
303+ if : steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
304+ run : yarn install --with-frozen-lockfile --ignore-scripts
305+
306+ - name : Check Dockerfile is up to date
307+ run : |
308+ yarn update-dockerfile
309+ if ! git diff --quiet; then
310+ echo "Dockerfile is not up to date. Please run 'yarn update-dockerfile' and commit the changes."
311+ git diff
312+ exit 1
313+ fi
0 commit comments