forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 905 Bytes
/
lint.yml
File metadata and controls
35 lines (28 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: lint
on:
pull_request:
# Declare default permissions as read only.
permissions:
contents: read
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version-file: '.nvmrc'
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile --ignore-scripts
- name: Setup ESLint Caching
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: .eslintcache
key: ${{ runner.os }}-${{ hashFiles('.eslintrc.json') }}-1
- name: Run ESLint
run: yarn lint --cache-strategy content