mirror of https://github.com/rancher/dashboard.git
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:
parent
fa2f01950b
commit
ef8932e410
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
scope: '@rancher'
|
||||
|
||||
- name: Install
|
||||
run: yarn install --frozen-lockfile
|
||||
run: yarn install:ci
|
||||
|
||||
- name: Lint
|
||||
run: yarn lint:lib
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue