aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-30 01:41:32 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-30 01:41:32 -0700
commit06161fe00baaa99d83c03ad47149d565012c444f (patch)
tree4953127df4d7ba17c67a63944343cbf5da00e21a
parent923d51a2e46367ae161ea0dae003564b4add505e (diff)
downloadbun-06161fe00baaa99d83c03ad47149d565012c444f.tar.gz
bun-06161fe00baaa99d83c03ad47149d565012c444f.tar.zst
bun-06161fe00baaa99d83c03ad47149d565012c444f.zip
better
-rw-r--r--.github/workflows/bun-linux-build.yml36
-rw-r--r--.github/workflows/bun-mac-aarch64.yml34
-rw-r--r--.github/workflows/bun-mac-x64-baseline.yml33
-rw-r--r--.github/workflows/bun-mac-x64.yml34
4 files changed, 61 insertions, 76 deletions
diff --git a/.github/workflows/bun-linux-build.yml b/.github/workflows/bun-linux-build.yml
index c8bd0af4b..f5b0de9fe 100644
--- a/.github/workflows/bun-linux-build.yml
+++ b/.github/workflows/bun-linux-build.yml
@@ -154,14 +154,23 @@ jobs:
tag: "canary"
artifacts: "${{runner.temp}}/release/bun-${{matrix.tag}}.zip,${{runner.temp}}/release/bun-${{matrix.tag}}-profile.zip"
- uses: sarisia/actions-status-discord@v1
- if: always() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
+ if: failure() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
with:
- title: "Build **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{matrix.tag}}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
- noprefix: true
status: ${{ job.status }}
+ noprefix: true
+ nocontext: true
description: |
+ ### [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
+
+ @${{ github.actor }}
+
+ Build failed on ${{ matrix.tag }}:
+
**[View build output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
+
+ [Commit ${{github.sha}}](https://github.com/oven-sh/bun/commits/${{github.sha}})
linux-test:
name: Tests ${{matrix.tag}}
runs-on: ubuntu-latest
@@ -217,32 +226,19 @@ jobs:
- uses: sarisia/actions-status-discord@v1
if: always() && steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
with:
- title: "**[❌ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{ steps.test.outputs.failing_tests_count }} files in ${{ matrix.tag }}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: "failure"
noprefix: true
+ nocontext: true
description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
+ ### ❌ [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
- ❌ @${{ github.actor }} there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
+ @${{ github.actor }}, there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
${{ steps.test.outputs.failing_tests }}
**[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
-
- - uses: sarisia/actions-status-discord@v1
- if: always() && steps.test.outputs.failing_tests == '' && github.event_name == 'pull_request'
- with:
- title: "**[✅ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} tests passed on ${{ matrix.tag }}!"
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
- status: ${{ job.status }}
- noprefix: true
- description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
-
- Nice work @${{ github.actor }}! All tests passed on ${{ matrix.tag }} for PR #${{github.event.number}}.
-
- **[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
- name: Comment on PR
if: steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
diff --git a/.github/workflows/bun-mac-aarch64.yml b/.github/workflows/bun-mac-aarch64.yml
index 82dd47bc6..aaddad1f2 100644
--- a/.github/workflows/bun-mac-aarch64.yml
+++ b/.github/workflows/bun-mac-aarch64.yml
@@ -394,14 +394,23 @@ jobs:
tag: "canary"
artifacts: "${{runner.temp}}/release/${{matrix.tag}}.zip,${{runner.temp}}/release/${{matrix.tag}}-profile.zip"
- uses: sarisia/actions-status-discord@v1
- if: always() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
+ if: failure() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
with:
- title: "Build **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{matrix.tag}}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
noprefix: true
+ nocontext: true
description: |
+ ### [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
+
+ @${{ github.actor }}
+
+ Build failed on ${{ matrix.tag }}:
+
**[View build output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
+
+ [Commit ${{github.sha}}](https://github.com/oven-sh/bun/commits/${{github.sha}})
macOS-test:
name: Tests ${{matrix.tag}}
runs-on: ${{ matrix.runner }}
@@ -456,32 +465,19 @@ jobs:
- uses: sarisia/actions-status-discord@v1
if: always() && steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
with:
- title: "**[❌ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{ steps.test.outputs.failing_tests_count }} files in ${{ matrix.tag }}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: "failure"
noprefix: true
+ nocontext: true
description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
+ ### ❌ [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
- ❌ @${{ github.actor }} there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
+ @${{ github.actor }}, there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
${{ steps.test.outputs.failing_tests }}
**[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
-
- - uses: sarisia/actions-status-discord@v1
- if: always() && steps.test.outputs.failing_tests == '' && github.event_name == 'pull_request'
- with:
- title: "**[✅ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} tests passed on ${{ matrix.tag }}!"
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
- status: ${{ job.status }}
- noprefix: true
- description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
-
- Nice work @${{ github.actor }}! All tests passed on ${{ matrix.tag }} for PR #${{github.event.number}}.
-
- **[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
- name: Comment on PR
if: steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
diff --git a/.github/workflows/bun-mac-x64-baseline.yml b/.github/workflows/bun-mac-x64-baseline.yml
index 78c898bcb..d75d1850a 100644
--- a/.github/workflows/bun-mac-x64-baseline.yml
+++ b/.github/workflows/bun-mac-x64-baseline.yml
@@ -398,14 +398,23 @@ jobs:
tag: "canary"
artifacts: "${{runner.temp}}/release/${{matrix.tag}}.zip,${{runner.temp}}/release/${{matrix.tag}}-profile.zip"
- uses: sarisia/actions-status-discord@v1
- if: always() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
+ if: failure() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
with:
- title: "Build **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{matrix.tag}}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
noprefix: true
+ nocontext: true
description: |
+ ### [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
+
+ @${{ github.actor }}
+
+ Build failed on ${{ matrix.tag }}:
+
**[View build output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
+
+ [Commit ${{github.sha}}](https://github.com/oven-sh/bun/commits/${{github.sha}})
macOS-test:
name: Tests ${{matrix.tag}}
runs-on: ${{ matrix.runner }}
@@ -460,32 +469,20 @@ jobs:
- uses: sarisia/actions-status-discord@v1
if: always() && steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
with:
- title: "**[❌ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{ steps.test.outputs.failing_tests_count }} files in ${{ matrix.tag }}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: "failure"
noprefix: true
+ nocontext: true
description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
+ ### ❌ [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
- ❌ @${{ github.actor }} there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
+ @${{ github.actor }}, there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
${{ steps.test.outputs.failing_tests }}
**[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
- - uses: sarisia/actions-status-discord@v1
- if: always() && steps.test.outputs.failing_tests == '' && github.event_name == 'pull_request'
- with:
- title: "**[✅ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} tests passed on ${{ matrix.tag }}!"
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
- status: ${{ job.status }}
- noprefix: true
- description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
-
- Nice work @${{ github.actor }}! All tests passed on ${{ matrix.tag }} for PR #${{github.event.number}}.
-
- **[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
- name: Comment on PR
if: steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
diff --git a/.github/workflows/bun-mac-x64.yml b/.github/workflows/bun-mac-x64.yml
index 7dcc22d19..dd1d50b93 100644
--- a/.github/workflows/bun-mac-x64.yml
+++ b/.github/workflows/bun-mac-x64.yml
@@ -400,14 +400,23 @@ jobs:
tag: "canary"
artifacts: "${{runner.temp}}/release/${{matrix.tag}}.zip,${{runner.temp}}/release/${{matrix.tag}}-profile.zip"
- uses: sarisia/actions-status-discord@v1
- if: always() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
+ if: failure() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request'
with:
- title: "Build **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{matrix.tag}}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
noprefix: true
+ nocontext: true
description: |
+ ### [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
+
+ @${{ github.actor }}
+
+ Build failed on ${{ matrix.tag }}:
+
**[View build output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
+
+ [Commit ${{github.sha}}](https://github.com/oven-sh/bun/commits/${{github.sha}})
macOS-test:
name: Tests ${{matrix.tag}}
runs-on: ${{ matrix.runner }}
@@ -462,32 +471,19 @@ jobs:
- uses: sarisia/actions-status-discord@v1
if: always() && steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
with:
- title: "**[❌ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} ${{ steps.test.outputs.failing_tests_count }} files in ${{ matrix.tag }}"
+ title: ""
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: "failure"
noprefix: true
+ nocontext: true
description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
+ ### ❌ [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})
- ❌ @${{ github.actor }} there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
+ @${{ github.actor }}, there are ${{ steps.test.outputs.failing_tests_count }} files with test failures on ${{ matrix.tag }}:
${{ steps.test.outputs.failing_tests }}
**[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
-
- - uses: sarisia/actions-status-discord@v1
- if: always() && steps.test.outputs.failing_tests == '' && github.event_name == 'pull_request'
- with:
- title: "**[✅ ${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})** @${{ github.actor }} tests passed on ${{ matrix.tag }}!"
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
- status: ${{ job.status }}
- noprefix: true
- description: |
- **[${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pulls/${{github.event.number}})**
-
- Nice work @${{ github.actor }}! All tests passed on ${{ matrix.tag }} for PR #${{github.event.number}}.
-
- **[View test output](https://github.com/oven-sh/bun/actions/runs/${{github.run_id}})**
- name: Comment on PR
if: steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2