add caching and node matrix (#114)
This commit is contained in:
Родитель
5e4c6b89bd
Коммит
eb36c1b42f
|
@ -30,6 +30,23 @@ jobs:
|
|||
git config --global user.name "${{ env.GITHUB_SERVICE_USER }}"
|
||||
git config --global user.email "${{ env.GITHUB_SERVICE_EMAIL }}"
|
||||
|
||||
- name: Cache multiple paths
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
${{ runner.os }}-build-
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install package dependencies / prepare workspaces
|
||||
run: npm ci
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче