Feat/other pages #65
Workflow file for this run
This file contains 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: Contracts CI | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "packages/contracts/**" | |
pull_request: | |
branches: [main] | |
paths: | |
- "packages/contracts/**" | |
jobs: | |
build: | |
name: Build and Test Contracts | |
timeout-minutes: 2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 8.15.6 | |
run_install: false | |
- name: Setup NodeJS 20.14.0 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.14.0 | |
cache: "pnpm" | |
- name: Install contracts dependencies | |
working-directory: packages/contracts | |
run: pnpm install | |
- name: Run Hardhat Compile | |
working-directory: packages/contracts | |
run: pnpm exec hardhat compile | |
- name: Run Hardhat Test | |
working-directory: packages/contracts | |
run: pnpm exec hardhat test |