Skip to content

Commit

Permalink
cache adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
klemmchr committed Nov 17, 2019
1 parent 31ab0e4 commit 8ebe7ee
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,29 @@ jobs:
matrix:
node-version: [10.x, 12.x]
env:
CYPRESS_CACHE_FOLDER: node_modules/.cypress
CYPRESS_CACHE_FOLDER: ${{ env.GITHUB_WORKSPACE }}/.cache/Cypress
steps:
- uses: actions/checkout@v1

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Yarn
run: npm i yarn --global

- name: Cache node modules
- name: Cache Node Modules
uses: actions/cache@v1
with:
path: node_modules
path: .cache
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-
${{ runner.OS }}-

- name: Install Packages
run: rm -rf node_modules && yarn install --frozen-lockfile --force
run: |
rm -rf node_modules
yarn config set cache-folder $GITHUB_WORKSPACE/.cache/yarn
yarn install --frozen-lockfile --force
- name: Run Build
run: yarn build
Expand Down

0 comments on commit 8ebe7ee

Please sign in to comment.