Skip to content

chore(deps): bump actions/checkout from 2 to 4 #534

chore(deps): bump actions/checkout from 2 to 4

chore(deps): bump actions/checkout from 2 to 4 #534

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@v4
- 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@v2
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