mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Use CircleCI executors to simplify CI config (#10055)
The CI config has been updated to use CircleCI executors. This allows us to define the container environments used in one place, and reuse these environment definitions between jobs. This should result in no functional changes.
This commit is contained in:
parent
d8ec5f19f6
commit
caa5c73697
@ -1,5 +1,19 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
|
executors:
|
||||||
|
node-browsers:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
||||||
|
node-browsers-medium-plus:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
||||||
|
resource_class: medium+
|
||||||
|
environment:
|
||||||
|
NODE_OPTIONS: --max_old_space_size=2048
|
||||||
|
shellcheck:
|
||||||
|
docker:
|
||||||
|
- image: koalaman/shellcheck-alpine@sha256:35882cba254810c7de458528011e935ba2c4f3ebcb224275dfa7ebfa930ef294
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
test_and_release:
|
test_and_release:
|
||||||
jobs:
|
jobs:
|
||||||
@ -98,8 +112,7 @@ workflows:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create_release_pull_request:
|
create_release_pull_request:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -112,8 +125,7 @@ jobs:
|
|||||||
.circleci/scripts/release-create-release-pr
|
.circleci/scripts/release-create-release-pr
|
||||||
|
|
||||||
prep-deps:
|
prep-deps:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -131,11 +143,7 @@ jobs:
|
|||||||
- build-artifacts
|
- build-artifacts
|
||||||
|
|
||||||
prep-build:
|
prep-build:
|
||||||
docker:
|
executor: node-browsers-medium-plus
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
resource_class: medium+
|
|
||||||
environment:
|
|
||||||
NODE_OPTIONS: --max_old_space_size=2048
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -153,11 +161,7 @@ jobs:
|
|||||||
- builds
|
- builds
|
||||||
|
|
||||||
prep-build-test:
|
prep-build-test:
|
||||||
docker:
|
executor: node-browsers-medium-plus
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
resource_class: medium+
|
|
||||||
environment:
|
|
||||||
NODE_OPTIONS: --max_old_space_size=2048
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -178,11 +182,7 @@ jobs:
|
|||||||
- builds-test
|
- builds-test
|
||||||
|
|
||||||
prep-build-test-metrics:
|
prep-build-test-metrics:
|
||||||
docker:
|
executor: node-browsers-medium-plus
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
resource_class: medium+
|
|
||||||
environment:
|
|
||||||
NODE_OPTIONS: --max_old_space_size=2048
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -203,8 +203,7 @@ jobs:
|
|||||||
- builds-test-metrics
|
- builds-test-metrics
|
||||||
|
|
||||||
prep-build-storybook:
|
prep-build-storybook:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -218,8 +217,7 @@ jobs:
|
|||||||
- .out
|
- .out
|
||||||
|
|
||||||
test-lint:
|
test-lint:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -232,8 +230,7 @@ jobs:
|
|||||||
command: yarn verify-locales --quiet
|
command: yarn verify-locales --quiet
|
||||||
|
|
||||||
test-lint-shellcheck:
|
test-lint-shellcheck:
|
||||||
docker:
|
executor: shellcheck
|
||||||
- image: koalaman/shellcheck-alpine@sha256:35882cba254810c7de458528011e935ba2c4f3ebcb224275dfa7ebfa930ef294
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: apk add --no-cache bash jq yarn
|
- run: apk add --no-cache bash jq yarn
|
||||||
@ -242,8 +239,7 @@ jobs:
|
|||||||
command: ./development/shellcheck.sh
|
command: ./development/shellcheck.sh
|
||||||
|
|
||||||
test-lint-lockfile:
|
test-lint-lockfile:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -253,8 +249,7 @@ jobs:
|
|||||||
command: yarn lint:lockfile
|
command: yarn lint:lockfile
|
||||||
|
|
||||||
test-deps:
|
test-deps:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -264,8 +259,7 @@ jobs:
|
|||||||
command: .circleci/scripts/yarn-audit
|
command: .circleci/scripts/yarn-audit
|
||||||
|
|
||||||
test-e2e-chrome:
|
test-e2e-chrome:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -289,8 +283,7 @@ jobs:
|
|||||||
destination: test-artifacts
|
destination: test-artifacts
|
||||||
|
|
||||||
test-e2e-chrome-metrics:
|
test-e2e-chrome-metrics:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -314,8 +307,7 @@ jobs:
|
|||||||
destination: test-artifacts
|
destination: test-artifacts
|
||||||
|
|
||||||
test-e2e-firefox:
|
test-e2e-firefox:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -342,8 +334,7 @@ jobs:
|
|||||||
destination: test-artifacts
|
destination: test-artifacts
|
||||||
|
|
||||||
test-e2e-firefox-metrics:
|
test-e2e-firefox-metrics:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -370,8 +361,7 @@ jobs:
|
|||||||
destination: test-artifacts
|
destination: test-artifacts
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -394,8 +384,7 @@ jobs:
|
|||||||
- test-artifacts
|
- test-artifacts
|
||||||
|
|
||||||
job-publish-prerelease:
|
job-publish-prerelease:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -426,8 +415,7 @@ jobs:
|
|||||||
command: ./development/metamaskbot-build-announce.js
|
command: ./development/metamaskbot-build-announce.js
|
||||||
|
|
||||||
job-publish-release:
|
job-publish-release:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -444,8 +432,7 @@ jobs:
|
|||||||
command: .circleci/scripts/release-create-master-pr
|
command: .circleci/scripts/release-create-master-pr
|
||||||
|
|
||||||
job-publish-storybook:
|
job-publish-storybook:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- add_ssh_keys:
|
- add_ssh_keys:
|
||||||
fingerprints:
|
fingerprints:
|
||||||
@ -460,8 +447,7 @@ jobs:
|
|||||||
yarn storybook:deploy
|
yarn storybook:deploy
|
||||||
|
|
||||||
test-unit:
|
test-unit:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -475,8 +461,7 @@ jobs:
|
|||||||
- .nyc_output
|
- .nyc_output
|
||||||
- coverage
|
- coverage
|
||||||
test-unit-global:
|
test-unit-global:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -486,8 +471,7 @@ jobs:
|
|||||||
command: yarn test:unit:global
|
command: yarn test:unit:global
|
||||||
|
|
||||||
validate-source-maps:
|
validate-source-maps:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -497,8 +481,7 @@ jobs:
|
|||||||
command: yarn validate-source-maps
|
command: yarn validate-source-maps
|
||||||
|
|
||||||
test-mozilla-lint:
|
test-mozilla-lint:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -508,16 +491,14 @@ jobs:
|
|||||||
command: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint
|
command: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint
|
||||||
|
|
||||||
all-tests-pass:
|
all-tests-pass:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: All Tests Passed
|
name: All Tests Passed
|
||||||
command: echo 'weew - everything passed!'
|
command: echo 'weew - everything passed!'
|
||||||
|
|
||||||
coveralls-upload:
|
coveralls-upload:
|
||||||
docker:
|
executor: node-browsers
|
||||||
- image: circleci/node@sha256:e16740707de2ebed45c05d507f33ef204902349c7356d720610b5ec6a35d3d88
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
|
Loading…
Reference in New Issue
Block a user