-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (37 loc) · 1.19 KB
/
linter.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
name: Lint Repo
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Lint
runs-on: ${{ vars.WF_UBUNTU_LTS }}
strategy:
matrix:
node-version:
- "${{ vars.WF_NODEJS_OLD }}"
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Using Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install npm version matching NodeJS
if: ${{ matrix.node-version == vars.WF_NODEJS_LATEST }}
run: npm install -g npm@${{ vars.WF_NPM_LATEST }}
- name: Install npm version matching NodeJS
if: ${{ matrix.node-version == vars.WF_NODEJS_OLD }}
run: npm install -g npm@${{ vars.WF_NPM_OLD }}
- name: Install deps
run: npm install
- name: Lint
run: npm run lint
- name: Verify Publish Configurations
run: ./scripts/lint-publish-configs.sh
- name: Verify No Duplicate Dependencies
run: ./scripts/lint-package-dependencies.sh