Add forked env repo example #1358
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: CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, edited, ready_for_review] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install packages | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20.x' | |
| - run: yarn --ignore-scripts | |
| shell: bash | |
| - name: Check cyclic dependencies | |
| run: yarn hardhat run scripts/cyclicDependencyCheck.ts | |
| shell: bash | |
| - name: Check contract sizing | |
| continue-on-error: true # to show errors as warnings | |
| run: yarn hardhat measure-contract-sizes | |
| shell: bash | |
| - name: Run Tests | |
| run: yarn hardhat test | |
| shell: bash |