Skip to content

Commit

Permalink
chore(ci): run yarn with frozen-lockfile (#7717)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Jan 27, 2019
1 parent 9d89d9b commit 130547b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ steps:
displayName: 'Move source into jest folder'
# Run yarn to install dependencies and build
- script: yarn
- script: yarn --frozen-lockfile
workingDirectory: $(JEST_DIR)
displayName: 'Install dependencies and build'

Expand Down
17 changes: 9 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run: echo server.max_workers=1 >> .flowconfig
- run: yarn lint --format junit -o reports/junit/js-lint-results.xml && yarn typecheck && yarn lint-es5-build --format junit -o reports/junit/js-es5-lint-results.xml && yarn lint:md:ci && yarn check-copyright-headers
- store_test_results:
path: reports/junit
Expand All @@ -37,7 +38,7 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress --ignore-engines
- run: yarn --no-progress --frozen-lockfile --ignore-engines
- save-cache: *save-cache
- run:
# react-native does not work with node 6
Expand All @@ -52,7 +53,7 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run:
command: yarn test-ci-partial
Expand All @@ -66,7 +67,7 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run:
command: yarn test-ci
Expand All @@ -80,7 +81,7 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run:
command: JEST_CIRCUS=1 yarn test-ci-partial
Expand All @@ -94,7 +95,7 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run:
command: yarn test-ci-partial
Expand All @@ -108,7 +109,7 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run: yarn test-ci-es5-build-in-browser

Expand All @@ -120,7 +121,7 @@ jobs:
steps:
- checkout
- restore-cache: *restore-cache
- run: yarn --no-progress
- run: yarn --no-progress --frozen-lockfile
- save-cache: *save-cache
- run:
name: Test or Deploy Jest Website
Expand Down
14 changes: 7 additions & 7 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
.*/node_modules/metro/.*
.*/node_modules/module-deps/.*

[options]
module.name_mapper='^pretty-format$' -> '<PROJECT_ROOT>/packages/pretty-format/src/index.js'
module.name_mapper='^types/\(.*\)$' -> '<PROJECT_ROOT>/types/\1.js'
module.name_mapper='\(jest-[^/]*\)' -> '<PROJECT_ROOT>/packages/\1/src/index.js'
include_warnings=true
emoji=true

[strict]
nonstrict-import
unclear-type
Expand All @@ -20,3 +13,10 @@ untyped-type-import

[version]
^0.91.0

[options]
module.name_mapper='^pretty-format$' -> '<PROJECT_ROOT>/packages/pretty-format/src/index.js'
module.name_mapper='^types/\(.*\)$' -> '<PROJECT_ROOT>/types/\1.js'
module.name_mapper='\(jest-[^/]*\)' -> '<PROJECT_ROOT>/packages/\1/src/index.js'
include_warnings=true
emoji=true
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"

install: yarn --frozen-lockfile

cache:
yarn: true
directories:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ init:
install:
- ps: Install-Product node $env:nodejs_version x64
- node --version
- yarn
- yarn --frozen-lockfile

cache:
- node_modules
Expand Down

0 comments on commit 130547b

Please sign in to comment.