feat: Phase Two Asset Listing #120
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
| # This action runs all common tooling for foundry repos | |
| # It does not comment any results though. | |
| # If you want to have comments on your repo, also install comment.yml | |
| name: Test | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| lint: | |
| uses: bgd-labs/github-workflows/.github/workflows/foundry-lint-prettier.yml@main | |
| test: | |
| uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main | |
| codecov: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: lcov-report | |
| path: lcov | |
| - name: Cleanup lcov | |
| run: | | |
| sudo apt-get -y install lcov | |
| lcov --remove ./lcov/lcov.info -o ./lcov/lcov.info \ | |
| 'src/contracts/helpers/UiIncentiveDataProviderV3.sol' \ | |
| 'src/contracts/helpers/UiPoolDataProviderV3.sol' \ | |
| 'src/contracts/helpers/WalletBalanceProvider.sol' \ | |
| 'src/contracts/dependencies/*' | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@ea99328d1c4d5f39fda7cbffe104afd6906c50b0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: ${{ github.repository }} | |
| files: ./lcov/lcov.info | |
| # only when the repo has zksync code | |
| # test-zk: | |
| # uses: bgd-labs/github-workflows/.github/workflows/foundry-test-zk.yml@main |