Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): run yarn with frozen-lockfile #7717

Merged
merged 4 commits into from
Jan 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
SimenB marked this conversation as resolved.
Show resolved Hide resolved
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