diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-18 17:41:19 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-18 17:41:19 +0900 |
| commit | dded3912f8a950013179f2eb301fd26fd776f53c (patch) | |
| tree | d46d65885e4ce781eb6f00e188a6e57be351af79 /.github | |
| parent | Update CHANGELOG.md (diff) | |
| download | sharkey-dded3912f8a950013179f2eb301fd26fd776f53c.tar.gz sharkey-dded3912f8a950013179f2eb301fd26fd776f53c.tar.bz2 sharkey-dded3912f8a950013179f2eb301fd26fd776f53c.zip | |
ci: cache node_modules
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/lint.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0b3bbc186f..9ba110f776 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,5 +17,9 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12.x + - uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - run: yarn install - run: yarn lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e220d714d0..6a684eaa48 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,6 +75,10 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies run: yarn install - name: Check yarn.lock |