Add `--frozen-lockfile` for `yarn install` for CI workflows (#7412)

* Add frozen lockfile for ci yarn install

Add `install:ci` to yarn scripts for frozen lockfile

* Remove install:ci from e2e check

* Add install:ci to package.json

* Replace install:ci to e2e-test
This commit is contained in:
Jordon Leach 2023-01-10 10:40:02 -05:00 committed by GitHub
parent fa2f01950b
commit ef8932e410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 8 deletions

View File

@ -22,7 +22,7 @@ jobs:
cache: yarn
- name: Install dependencies
run: cd docusaurus/ && yarn install --frozen-lockfile
run: cd docusaurus/ && yarn install:ci
- name: Build website
run: cd docusaurus/ && yarn build

View File

@ -24,7 +24,7 @@ jobs:
scope: '@rancher'
- name: Install
run: yarn install --frozen-lockfile
run: yarn install:ci
- name: Lint
run: yarn lint:lib

View File

@ -25,7 +25,7 @@ echo Creating release directory
mkdir $RELEASE_DIR
echo Installing dependencies
yarn install --frozen-lockfile
yarn install:ci
echo Building
NUXT_ENV_commit=$GITHUB_SHA NUXT_ENV_version=$GITHUB_REF_NAME OUTPUT_DIR="$ARTIFACT_LOCATION" ROUTER_BASE="$ROUTER_BASE" RANCHER_ENV=$RANCHER_ENV API=$API RESOURCE_BASE=$RESOURCE_BASE EXCLUDES_PKG=$EXCLUDES_PKG yarn run build --spa

View File

@ -38,7 +38,7 @@ jobs:
node-version: '14.x'
- name: Install packages
run: yarn install
run: yarn install:ci
- name: Prepare build
run: yarn e2e:pre-prod
@ -73,7 +73,7 @@ jobs:
node-version: '14.x'
- name: Install packages
run: yarn install
run: yarn install:ci
- name: Run tests
run: |
@ -98,7 +98,7 @@ jobs:
node-version: '14.x'
- name: Install packages
run: yarn install
run: yarn install:ci
- name: Run i18n linters
run: yarn lint-l10n
@ -114,7 +114,7 @@ jobs:
node-version: '14.x'
- name: Install packages
run: yarn install
run: yarn install:ci
- name: Run linters
run: yarn lint

View File

@ -11,7 +11,8 @@
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids"
"write-heading-ids": "docusaurus write-heading-ids",
"install:ci": "yarn install --frozen-lockfile"
},
"dependencies": {
"@docusaurus/core": "2.0.0-beta.22",

View File

@ -23,6 +23,7 @@
"lint-l10n": "./node_modules/.bin/yamllint ./shell/assets/translations",
"test": "jest --watch",
"test:ci": "jest --collectCoverage",
"install:ci": "yarn install --frozen-lockfile",
"nuxt": "./node_modules/.bin/nuxt",
"dev": "source ./scripts/version && ./node_modules/.bin/nuxt dev",
"mem-dev": "source ./scripts/version && node --max-old-space-size=8192 ./node_modules/.bin/nuxt dev",