forked from omegasisters/homepage
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: checkout を v2 に更新 feat: cache を使用 chore: yarn を直接使用 chore: build を削除
- Loading branch information
1 parent
c1fea1d
commit 67bfdcc
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,16 @@ jobs: | |
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: borales/[email protected] | ||
- uses: actions/checkout@v2 | ||
- name: Get Yarn Cache Directory | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- name: Cache node dependencies | ||
uses: actions/cache@v1 | ||
with: | ||
cmd: install | ||
- uses: borales/[email protected] | ||
with: | ||
cmd: build | ||
- uses: borales/[email protected] | ||
with: | ||
cmd: test | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- run: yarn install | ||
- run: yarn test |