Skip to content

Commit

Permalink
refactor: workflow のリファクタリング
Browse files Browse the repository at this point in the history
chore: checkout を v2 に更新
feat: cache を使用
chore: yarn を直接使用
chore: build を削除
  • Loading branch information
technote-space committed Mar 6, 2020
1 parent c1fea1d commit 67bfdcc
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 67bfdcc

Please sign in to comment.