-
Notifications
You must be signed in to change notification settings - Fork 156
42 lines (35 loc) · 1.05 KB
/
lint.yml
File metadata and controls
42 lines (35 loc) · 1.05 KB
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
name: Lint
permissions:
contents: read
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
name: Check code style
runs-on: ubuntu-latest
steps:
- name: Checkout AWS XRay SDK Node Repository @ default branch latest
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0
- name: Setup Node
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 #v3.9.1
with:
node-version: 16.x
- run: npm install -g npm@8.19.4
- name: Cache NPM modules
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c #v3.5.0
with:
path: |
node_modules
package-lock.json
packages/*/node_modules
packages/*/package-lock.json
key: lint-${{ runner.os }}-${{ hashFiles('package.json', 'packages/*/package.json') }}-06142023
- name: Bootstrap
run: |
npm ci
npx lerna bootstrap --no-ci --hoist
- name: Lint
run: npx lerna run lint