Also cache Hardhat's repo dependencies #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| run: | | |
| git clone --depth=1 "$HARDHAT_REPO_URL" "$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 |