-
Notifications
You must be signed in to change notification settings - Fork 98
43 lines (39 loc) · 1.04 KB
/
CI.yml
File metadata and controls
43 lines (39 loc) · 1.04 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
43
name: CI
on:
push:
pull_request:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
env:
HARDHAT_REPO_URL: https://github.com/NomicFondation/hardhat.git
HARDHAT_REPO_DIR: ../websites-version-of-hardhat
jobs:
build:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clone Hardhat's repo
uses: actions/checkout@v4
with:
repository: NomicFoundation/hardhat
path: ${{ env.HARDHAT_REPO_DIR }}
- uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- uses: actions/setup-node@v4
id: setup-node
with:
node-version: "22"
cache: "pnpm"
cache-dependency-path: |
pnpm-lock.yaml
${{ env.HARDHAT_REPO_DIR }}/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Lint the docs
run: pnpm lint
- name: Build the docs
run: pnpm build