update repo structure #20
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: Smart Contracts | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "smart-contracts/**" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "smart-contracts/**" | |
| jobs: | |
| test: | |
| name: Compile, Lint & Test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: smart-contracts | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Compile contracts | |
| run: bunx hardhat compile | |
| - name: Lint Solidity | |
| run: bunx solhint 'contracts/**/*.sol' | |
| - name: Run tests | |
| run: bunx hardhat test |