Reviewed changes fixed hardhat.config and added doc to readme #5
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: SwapLibrary Tests | |
| on: [push] | |
| jobs: | |
| tests: | |
| name: SwapLibrary Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npx hardhat compile | |
| - run: npx hardhat size-contracts | |
| - run: npm run solhint | |
| - run: npx hardhat test | |
| env: | |
| REPORT_GAS: "1" | |
| ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }} | |
| ALCHEMY_URL_POLYGON: ${{ secrets.ALCHEMY_URL_POLYGON }} | |
| - run: npx hardhat coverage | |
| env: | |
| ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }} | |
| ALCHEMY_URL_POLYGON: ${{ secrets.ALCHEMY_URL_POLYGON }} |