mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
caching tweak
This commit is contained in:
parent
f04763c1b3
commit
4ca211bf5c
25
.github/workflows/test.yml
vendored
25
.github/workflows/test.yml
vendored
@ -20,22 +20,25 @@ jobs:
|
|||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: ~/.npm
|
||||||
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.OS }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-node-
|
||||||
${{ runner.OS }}-build-
|
|
||||||
${{ runner.OS }}-
|
- name: Cache Gatsby build output
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: public
|
||||||
|
key: ${{ runner.os }}-public
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: npm ci
|
||||||
npm ci
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: npm test
|
||||||
npm test
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: npm run build --if-present
|
||||||
npm run build --if-present
|
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}
|
GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user