-
-
Notifications
You must be signed in to change notification settings - Fork 31
62 lines (54 loc) · 1.19 KB
/
lint.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Daffodil Lint
env:
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
on:
push:
paths:
- '**.ts'
- '**.scss'
- '**.html'
- '**.js'
- '**.json'
- '.github/**'
branches:
- develop
tags: ["v*"]
pull_request:
paths:
- '**.ts'
- '**.scss'
- '**.html'
- '**.js'
- '**.json'
- '.github/**'
branches:
- develop
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
node: [20.18.x]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
name: Derive appropriate SHAs for base and head for `nx affected` commands
with:
main-branch-name: 'develop'
- uses: actions/cache@v3
name: Lint Cache
id: lint_cache
with:
path: .nx_cache
key: lint-${{ matrix.node }}
- uses: graycoreio/github-actions/clear-old-nx-cache@main
with:
size-in-mb: 10
- uses: graycoreio/github-actions/setup-node@main
with:
node-version: ${{ matrix.node }}
use-stamp-cache: true
- run: npx nx affected --target=lint