Commit 0fd00976 authored by Albert Salim's avatar Albert Salim

Move yarn-install to before_script

parent d3ecf7cb
...@@ -172,6 +172,8 @@ graphql-schema-dump: ...@@ -172,6 +172,8 @@ graphql-schema-dump:
# Disable warnings in browserslist which can break on backports # Disable warnings in browserslist which can break on backports
# https://github.com/browserslist/browserslist/blob/a287ec6/node.js#L367-L384 # https://github.com/browserslist/browserslist/blob/a287ec6/node.js#L367-L384
BROWSERSLIST_IGNORE_OLD_DATA: "true" BROWSERSLIST_IGNORE_OLD_DATA: "true"
before_script:
- *yarn-install
stage: test stage: test
eslint-as-if-foss: eslint-as-if-foss:
...@@ -181,13 +183,11 @@ eslint-as-if-foss: ...@@ -181,13 +183,11 @@ eslint-as-if-foss:
- .as-if-foss - .as-if-foss
needs: [] needs: []
script: script:
- *yarn-install
- run_timed_command "yarn run lint:eslint:all" - run_timed_command "yarn run lint:eslint:all"
.jest-base: .jest-base:
extends: .frontend-test-base extends: .frontend-test-base
script: script:
- *yarn-install
- run_timed_command "yarn jest --ci --coverage --testSequencer ./scripts/frontend/parallel_ci_sequencer.js" - run_timed_command "yarn jest --ci --coverage --testSequencer ./scripts/frontend/parallel_ci_sequencer.js"
jest: jest:
...@@ -215,7 +215,6 @@ jest-integration: ...@@ -215,7 +215,6 @@ jest-integration:
- .frontend-test-base - .frontend-test-base
- .frontend:rules:default-frontend-jobs - .frontend:rules:default-frontend-jobs
script: script:
- *yarn-install
- run_timed_command "yarn jest:integration --ci" - run_timed_command "yarn jest:integration --ci"
needs: needs:
- job: "rspec frontend_fixture" - job: "rspec frontend_fixture"
...@@ -321,7 +320,6 @@ bundle-size-review: ...@@ -321,7 +320,6 @@ bundle-size-review:
extends: extends:
- .frontend-test-base - .frontend-test-base
script: script:
- *yarn-install
- run_timed_command "yarn generate:startup_css" - run_timed_command "yarn generate:startup_css"
- yarn check:startup_css - yarn check:startup_css
...@@ -349,7 +347,6 @@ startup-css-check as-if-foss: ...@@ -349,7 +347,6 @@ startup-css-check as-if-foss:
- .frontend-test-base - .frontend-test-base
- .storybook-yarn-cache - .storybook-yarn-cache
script: script:
- *yarn-install # storybook depends on the global webpack config, so we must install global deps.
- *storybook-yarn-install - *storybook-yarn-install
- yarn run storybook:build - yarn run storybook:build
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment