-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(l1, l2, levm): improve loc reporter (#1264)
- Print summary - Send summary to slack
- Loading branch information
Showing
3 changed files
with
40 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,27 @@ jobs: | |
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Generate the loc report | ||
id: loc-report | ||
run: make loc | ||
echo "content=$(cat loc_report.md)" >> $GITHUB_OUTPUT | ||
|
||
- name: Post results in summary | ||
run: | | ||
echo "# `ethrex` lines of code report:\n\n" >> $GITHUB_STEP_SUMMARY | ||
$(cat loc_report.md) >> $GITHUB_STEP_SUMMARY | ||
- name: Post results to slack | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
blocks: | ||
- type: "header" | ||
text: | ||
type: "plain_text" | ||
text: ethrex lines of code report | ||
- type: "section" | ||
text: | ||
type: "mrkdwn" | ||
text: ${{steps.loc-report.outputs.content}} |
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 |
---|---|---|
|
@@ -48,3 +48,5 @@ tests_v3.0.0.tar.gz | |
.env | ||
|
||
levm_ef_tests_report.txt | ||
|
||
loc_report.md |
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