Skip to content

Commit

Permalink
Merge pull request #53 from technote-space/feature/#46
Browse files Browse the repository at this point in the history
feat: use action/cache
  • Loading branch information
technote-space authored Nov 7, 2019
2 parents 7d5cf25 + 773a2e5 commit b4fb486
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
- uses: actions/checkout@v1
with:
fetch-depth: 3
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Package dependencies
run: yarn install
- name: Check code style
Expand Down Expand Up @@ -43,6 +50,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Package dependencies
run: yarn install
- name: Run tests
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
COMMIT_DISABLED: 1
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Package dependencies
run: yarn install
- name: Test
Expand Down

0 comments on commit b4fb486

Please sign in to comment.