Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
Simplify readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismydesign committed Aug 5, 2021
1 parent fa7f619 commit 077ac97
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,15 @@ jobs:
- uses: actions/checkout@v1
- uses: c-hive/gha-yarn-cache@v2
# with:
# directory: server # Optional, speficy the folder of yarn.lock if not in the root directory
- name: Install JS dependencies
run: yarn install
- name: Test
run: yarn test
```

It is also possible to define the target directory by:
`.github/workflows/ci.yml`
```yml
name: CI
on: [push]
defaults:
run:
working-directory: server
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: c-hive/gha-yarn-cache@v2
with:
directory: server
- name: Install JS dependencies
run: yarn install
- name: Test
- name: Test
run: yarn test
```

### Solution comparison

[Native](https://github.com/actions/cache/blob/9ab95382c899bf0953a0c6c1374373fc40456ffe/examples.md#node---yarn)
Expand Down

0 comments on commit 077ac97

Please sign in to comment.