Skip to content

Commit

Permalink
Tweak comment from PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Electroid committed Apr 17, 2024
1 parent 1925771 commit 492211f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,4 @@ jobs:
@${{ github.actor }}, the build for bun-${{ inputs.tag }} failed.
**[View logs](${{ github.event.workflow_run.logs_url }})**
**[View logs](${{ github.event.workflow_run.html_url }})**
2 changes: 1 addition & 1 deletion .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
@${{ github.actor }}, the build for bun-${{ inputs.tag }} failed.
**[View logs](${{ github.event.workflow_run.logs_url }})**
**[View logs](${{ github.event.workflow_run.html_url }})**
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,4 @@ jobs:
@${{ github.actor }}, the build for bun-${{ inputs.tag }} failed.
**[View logs](${{ github.event.workflow_run.logs_url }})**
**[View logs](${{ github.event.workflow_run.html_url }})**
9 changes: 2 additions & 7 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
pattern: bun-*-tests
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- name: Setup SSH
if: ${{ github.triggering_actor == 'Electroid' }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- name: Setup Environment
id: env
shell: bash
Expand All @@ -37,11 +32,11 @@ jobs:
run: |
cat bun/bun-*-tests/comment.md > comment.md
if [ -s comment.md ]; then
echo -e "❌ @${{ github.actor }}, there are failing tests: \n$(cat comment.md)" > comment.md
echo -e "❌ @${{ github.actor }}, there are failing tests: \n\n$(cat comment.md)" > comment.md
else
echo -e "✅ @${{ github.actor }}, all tests passed!" > comment.md
fi
echo -e "\n**[View logs](${{ github.event.workflow_run.logs_url }})**" >> comment.md
echo -e "\n**[View logs](${{ github.event.workflow_run.html_url }})**" >> comment.md
echo -e "<!-- generated-comment run-id=${{ github.event.workflow_run.id }} -->" >> comment.md
- name: Find Comment
id: comment
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:

jobs:
test:
name: Test
name: Run Tests
runs-on: ${{ inputs.runs-on }}
steps:
- name: Checkout
Expand Down Expand Up @@ -75,7 +75,15 @@ jobs:
shell: bash
run: |
bun install
- name: Install Dependencies (test)
timeout-minutes: 5
shell: bash
run: |
bun install --cwd test
- name: Install Dependencies (runner)
timeout-minutes: 5
shell: bash
run: |
bun install --cwd packages/bun-internal-test
- name: Run Tests
id: test
Expand Down Expand Up @@ -115,7 +123,7 @@ jobs:
${{ steps.test.outputs.failing_tests }}
**[View logs](${{ github.event.workflow_run.logs_url }})**
**[View logs](${{ github.event.workflow_run.html_url }})**
- name: Fail
if: ${{ failure() }}
run: |
Expand Down

0 comments on commit 492211f

Please sign in to comment.