|
@@ -25,22 +25,18 @@ jobs:
|
|
|
uses: actions/setup-node@v1
|
|
uses: actions/setup-node@v1
|
|
|
with:
|
|
with:
|
|
|
node-version: ${{ env.node }}
|
|
node-version: ${{ env.node }}
|
|
|
- - name: Get yarn cache directory path
|
|
|
|
|
- id: yarn-cache-dir-path
|
|
|
|
|
- run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
- uses: actions/cache@v2
|
|
- uses: actions/cache@v2
|
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
with:
|
|
with:
|
|
|
- path: |
|
|
|
|
|
- node_modules
|
|
|
|
|
- packages/*/node_modules
|
|
|
|
|
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
|
|
|
+ path: '**/node_modules'
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
${{ runner.os }}-yarn-
|
|
${{ runner.os }}-yarn-
|
|
|
- - name: Install & build
|
|
|
|
|
|
|
+ - name: Yarn install
|
|
|
|
|
+ if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
|
|
|
+ run: yarn install
|
|
|
|
|
+ - name: Build
|
|
|
run: |
|
|
run: |
|
|
|
- yarn install --prefer-offline
|
|
|
|
|
yarn bootstrap
|
|
yarn bootstrap
|
|
|
yarn build
|
|
yarn build
|
|
|
unit-tests:
|
|
unit-tests:
|
|
@@ -52,22 +48,18 @@ jobs:
|
|
|
uses: actions/setup-node@v1
|
|
uses: actions/setup-node@v1
|
|
|
with:
|
|
with:
|
|
|
node-version: ${{ env.node }}
|
|
node-version: ${{ env.node }}
|
|
|
- - name: Get yarn cache directory path
|
|
|
|
|
- id: yarn-cache-dir-path
|
|
|
|
|
- run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
- uses: actions/cache@v2
|
|
- uses: actions/cache@v2
|
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
with:
|
|
with:
|
|
|
- path: |
|
|
|
|
|
- node_modules
|
|
|
|
|
- packages/*/node_modules
|
|
|
|
|
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
|
|
|
+ path: '**/node_modules'
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
${{ runner.os }}-yarn-
|
|
${{ runner.os }}-yarn-
|
|
|
- - name: Install & build
|
|
|
|
|
|
|
+ - name: Yarn install
|
|
|
|
|
+ if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
|
|
|
+ run: yarn install --prefer-offline
|
|
|
|
|
+ - name: Build
|
|
|
run: |
|
|
run: |
|
|
|
- yarn install --prefer-offline
|
|
|
|
|
yarn bootstrap
|
|
yarn bootstrap
|
|
|
yarn lerna run ci
|
|
yarn lerna run ci
|
|
|
- name: Unit tests
|
|
- name: Unit tests
|
|
@@ -124,22 +116,18 @@ jobs:
|
|
|
uses: actions/setup-node@v1
|
|
uses: actions/setup-node@v1
|
|
|
with:
|
|
with:
|
|
|
node-version: ${{ env.node }}
|
|
node-version: ${{ env.node }}
|
|
|
- - name: Get yarn cache directory path
|
|
|
|
|
- id: yarn-cache-dir-path
|
|
|
|
|
- run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
- uses: actions/cache@v2
|
|
- uses: actions/cache@v2
|
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
|
with:
|
|
with:
|
|
|
- path: |
|
|
|
|
|
- node_modules
|
|
|
|
|
- packages/*/node_modules
|
|
|
|
|
- ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
|
|
|
+ path: '**/node_modules'
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
restore-keys: |
|
|
restore-keys: |
|
|
|
${{ runner.os }}-yarn-
|
|
${{ runner.os }}-yarn-
|
|
|
- - name: Install & build
|
|
|
|
|
|
|
+ - name: Yarn install
|
|
|
|
|
+ if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
|
|
|
+ run: yarn install --prefer-offline
|
|
|
|
|
+ - name: Build
|
|
|
run: |
|
|
run: |
|
|
|
- yarn install --prefer-offline
|
|
|
|
|
yarn bootstrap
|
|
yarn bootstrap
|
|
|
yarn lerna run ci
|
|
yarn lerna run ci
|
|
|
- name: df
|
|
- name: df
|