Add Node package caching (#2454)

This commit is contained in:
Vince Grassia 2022-03-15 17:08:43 -04:00 committed by GitHub
parent 3695cd31f6
commit ea1c33621a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions

View File

@ -26,6 +26,7 @@ jobs:
- name: Print lines of code - name: Print lines of code
run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git run: cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git
lint: lint:
name: Lint name: Lint
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -34,8 +35,10 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Set up Node - name: Set up Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3.0.0
with: with:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
node-version: '16' node-version: '16'
- name: Run linter - name: Run linter
@ -43,6 +46,7 @@ jobs:
npm ci npm ci
npm run lint npm run lint
setup: setup:
name: Setup name: Setup
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -62,6 +66,7 @@ jobs:
echo "::set-output name=repo_url::$repo_url" echo "::set-output name=repo_url::$repo_url"
echo "::set-output name=adj_build_number::$adj_build_num" echo "::set-output name=adj_build_number::$adj_build_num"
locales-test: locales-test:
name: Locales Test name: Locales Test
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
@ -96,6 +101,7 @@ jobs:
echo "Test passed!" echo "Test passed!"
fi fi
build: build:
name: Build name: Build
runs-on: windows-2019 runs-on: windows-2019
@ -109,8 +115,10 @@ jobs:
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Set up Node - name: Set up Node
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3.0.0
with: with:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
node-version: '16' node-version: '16'
- name: Print environment - name: Print environment