chore(deps): update actions/cache action to v3 - autoclosed #750
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: | |
# push: | |
# branches: | |
# - main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.x' | |
# Not working | |
# - uses: nrwl/nx-set-shas@v3 | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
env: | |
cache-name: _cache_npm_node16 | |
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: Typecheck | |
run: | | |
yarn | |
yarn 2021-app:typecheck | |
yarn 2023-app:typecheck | |
env: | |
CI: true | |
- name: Lint | |
run: | | |
yarn | |
yarn 2021-app:lint | |
yarn 2023-app:lint | |
env: | |
CI: true |