Finish ProofOfBread.sol contract #21
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: Smart Contracts | |
on: | |
push: | |
branches: [main] | |
paths: ['contracts/**'] | |
pull_request: | |
paths: ['contracts/**'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 7 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies in contracts package | |
run: pnpm install --filter contracts | |
- name: Run tests | |
run: pnpm test --filter contracts | |
env: | |
# Default Hardhat account | |
DEPLOYER_KEY: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80' | |
BASESCAN_API_KEY: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' |