ci: yarn: freeze lockfile (#3171)

This should highlight when the yarn.lock file is out of sync with package.json.

From the docs:

> If you need reproducible dependencies, which is usually the case with the continuous integration systems, you should pass --frozen-lockfile flag.
> - https://classic.yarnpkg.com/lang/en/docs/cli/install/
This commit is contained in:
Alex Anderson 2024-03-15 08:49:33 +03:00 committed by GitHub
parent 119078230e
commit 1481f8d1f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ jobs:
with:
node-version: 18
cache: yarn
- run: yarn install
- run: yarn install --frozen-lockfile
- run: yarn lint
build:
needs: lint
@ -68,6 +68,6 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install
- run: yarn install --frozen-lockfile
# TODO(bmc): get ssl tests working in ci
- run: yarn test