Skip to content

Commit

Permalink
add yarn ci script to remove invalid transitive dependencies before n…
Browse files Browse the repository at this point in the history
…ew install
  • Loading branch information
Jonathan Roebuck committed Feb 18, 2021
1 parent 729516f commit d52e82f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/simorgh-deploy-storybook.yml
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Install Node Modules
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
run: yarn ci

- name: Build Storybook
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simorgh-integration-tests.yml
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Install Node Modules
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
run: yarn install ci

- name: Integration Tests
run: yarn test:integration -- --ci
2 changes: 1 addition & 1 deletion .github/workflows/simorgh-local-server-tests.yml
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Install Node Modules
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
run: yarn install ci

- name: Build Simorgh
run: yarn build:local
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simorgh-misc-checks.yml
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Install Node Modules
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
run: yarn install ci

- name: Chromatic UI Tests
uses: chromaui/action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/simorgh-unit-tests.yml
Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Install Node Modules
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
run: yarn install ci

- name: Build Simorgh
run: |
Expand Down
2 changes: 1 addition & 1 deletion codebuild/e2e_buildspec.yml
Expand Up @@ -10,7 +10,7 @@ phases:
nodejs: 12
pre_build:
commands:
- yarn install --frozen-lockfile
- yarn install ci
- yarn build
build:
commands:
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -18,6 +18,7 @@
"build:storybook": "build-storybook -s .storybook/static -c .storybook -o storybook_dist",
"build:test": "cp envConfig/test.env .env && NODE_ENV=production webpack",
"build:test:debug": "rm -rf build && awk '{sub(/LOG_DIR=.+/,\"LOG_DIR='log'\")}1' envConfig/test.env > .env && NODE_ENV=production webpack",
"ci": "rm -rf node_modules && yarn install --frozen-lockfile",
"cypress": "cypress run",
"cypress:interactive": "cypress open",
"cypress:3rdParty": "yarn cypress -- --project ./3rdPartyCypress/.",
Expand Down

0 comments on commit d52e82f

Please sign in to comment.