Skip to content

chore(deps): bump actions/cache from 2 to 3 (#475) #544

chore(deps): bump actions/cache from 2 to 3 (#475)

chore(deps): bump actions/cache from 2 to 3 (#475) #544

Workflow file for this run

name: Linting
on:
push:
branches:
- main
- v1.*
pull_request:
branches:
- '**'
env:
CI: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm cache
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install latest npm
run: npm install --global npm@latest
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint