forked from NomicFoundation/hardhat
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.01 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
name: Lint
on:
push:
branches: [$default-branch]
pull_request:
branches:
- "**"
workflow_dispatch:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 18
cache: "pnpm"
cache-dependency-path: |
pnpm-lock.yaml
docs/pnpm-lock.yaml
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: pnpm build
- name: lint
run: pnpm lint
- name: Check dependency versions
run: node scripts/check-dependencies.js
- name: Install website
working-directory: docs/
run: pnpm install --frozen-lockfile --prefer-offline
- name: Lint website
working-directory: docs/
run: pnpm lint