generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ci): move coverage to separate workflow
- Loading branch information
Showing
2 changed files
with
40 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Coverage Report | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Setup repo | ||
uses: ./.github/actions/setup-repo | ||
with: | ||
registry-token: ${{ secrets.SDK_READ_ACCESS_TOKEN }} | ||
|
||
- name: Compile foundry | ||
run: forge build | ||
|
||
- name: 'Install lcov' | ||
run: 'sudo apt-get install lcov' | ||
|
||
- name: 'Generate the coverage report using the unit and the integration tests' | ||
run: 'bun ci:coverage' | ||
env: | ||
ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} | ||
ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} | ||
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} | ||
|
||
- name: 'Upload coverage report to Codecov' | ||
uses: 'codecov/codecov-action@v3' | ||
with: | ||
files: './lcov.info' | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: 'Add coverage summary' | ||
run: | | ||
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY | ||
echo "✅ Uploaded to Codecov" >> $GITHUB_STEP_SUMMARY |