Enable GitHub Actions Yarn Caching (#1332)
Summary: We sometimes see workflows fail due to network flakiness, almost always being Windows agents doing a `yarn install`. This change enables storing and reusing Yarn's package cache, and makes `yarn install` more permissive when it does hit the network. https://stackoverflow.com/questions/51508364/yarn-there-appears-to-be-trouble-with-your-network-connection-retrying Pull Request resolved: https://github.com/facebook/yoga/pull/1332 Test Plan: Workflows succeed, and we see cache being restored before yarn install step. Reviewed By: lunaleaps Differential Revision: D48967590 Pulled By: NickGerleman fbshipit-source-id: 55ce6f05496f014512e0153b6646a7ca0ab964d9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
65ae809d5d
commit
95a7b4497e
9
.github/workflows/validate-js.yml
vendored
9
.github/workflows/validate-js.yml
vendored
@@ -65,8 +65,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: yarn install
|
||||
run: yarn install --frozen-lockfile
|
||||
- name: Setup
|
||||
uses: ./.github/actions/setup-js
|
||||
|
||||
- name: yarn lint
|
||||
run: yarn lint
|
||||
@@ -77,9 +77,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: yarn install
|
||||
run: yarn install --frozen-lockfile
|
||||
working-directory: javascript
|
||||
- name: Setup
|
||||
uses: ./.github/actions/setup-js
|
||||
|
||||
- name: yarn tsc
|
||||
run: yarn tsc
|
||||
|
Reference in New Issue
Block a user