Merge pull request #3 from temrjan/feature/fund-reward-pool-script #2
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: Contracts (Solidity) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'contracts/contracts/**' | |
| - 'contracts/test/**' | |
| - 'contracts/hardhat.config.ts' | |
| - 'contracts/package.json' | |
| - '.github/workflows/contracts.yml' | |
| pull_request: | |
| paths: | |
| - 'contracts/contracts/**' | |
| - 'contracts/test/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: contracts | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: contracts/package-lock.json | |
| - run: npm ci | |
| # Hardhat EVM compile + tests (UZD + OltinStaking run in the plain EVM VM, | |
| # no zksolc needed for the suite). | |
| - name: Compile | |
| run: npx hardhat compile | |
| - name: Test | |
| run: npx hardhat test test/UZD.test.ts test/OltinStaking.test.ts |