Skip to content

Commit

Permalink
ci: prettify type check result and rm a comment (#3442)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-shaka authored Sep 23, 2024
1 parent e1eb98d commit 4878fcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,6 @@ jobs:

perf-measures-type-check-on-pr:
runs-on: ubuntu-latest
permissions:
contents: 'read'
pull-requests: 'write'
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
Expand All @@ -201,16 +198,12 @@ jobs:
- run: |
{
echo 'COMPARISON<<EOF'
bun scripts/process-results.ts
bun scripts/process-results.ts | column -s '|' -t
echo 'EOF'
} >> "$GITHUB_ENV"
working-directory: perf-measures/type-check
- run: echo "$COMPARISON"
# remove the comment out after we make sure that caching is working
# - uses: thollander/actions-comment-pull-request@v2
# with:
# comment_tag: perf-measures/type-check
# message: ${{ env.COMPARISON }}
name: display comparison


perf-measures-type-check-on-main:
Expand Down
2 changes: 1 addition & 1 deletion perf-measures/type-check/scripts/process-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ async function main() {
const previousResult = await fs.readFile('./previous-result.txt')
.then((data) => data.toString().split('\n'))
.catch(() => null)
const table = ['|| Current | Previous |', '|---|---|---|']
const table = ['| | Current | Previous |', '| --- | --- | --- |']
for (const [i, line] of currentResult.entries()) {
if (line === '') {continue}
const [name, value] = line.split(':')
Expand Down

0 comments on commit 4878fcf

Please sign in to comment.