Code coverage fixes (#640)
* Update coveralls link to point to protocol repo coverage * Remove obsoleted ignores in .gitignore * Run forge coverage in CI and upload results to coveralls * Remove unused wrapper * Remove legacy coverage setup * Remove lcov-result-merger * Add base-path setting to coverallsapp in CI
This commit is contained in:
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@@ -76,9 +76,30 @@ jobs:
|
||||
with:
|
||||
version: nightly
|
||||
|
||||
- name: Run foundry tests for zero ex contracts only
|
||||
- name: Run Forge build
|
||||
working-directory: contracts/zero-ex
|
||||
run: |
|
||||
forge --version
|
||||
forge build --sizes
|
||||
|
||||
- name: Run Forge tests
|
||||
working-directory: contracts/zero-ex
|
||||
run: |
|
||||
forge test -vvv --gas-report
|
||||
|
||||
- name: Run Forge coverage
|
||||
working-directory: contracts/zero-ex
|
||||
run: |
|
||||
forge coverage --report lcov
|
||||
|
||||
- name: Upload the coverage report to Coveralls
|
||||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
base-path: ./contracts/zero-ex/
|
||||
path-to-lcov: ./contracts/zero-ex/lcov.info
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user