diff options
author | 2023-09-30 02:50:38 -0700 | |
---|---|---|
committer | 2023-09-30 02:50:38 -0700 | |
commit | c21be13be42f6ca9ec368bd52eee4dc6129f156c (patch) | |
tree | 30ed73bb735eb19649c2daf42cc35aeb8bb914be /.github/workflows/bun-mac-aarch64.yml | |
parent | c0b758ad454780db7208a7600b0e73b213d3e7a9 (diff) | |
download | bun-c21be13be42f6ca9ec368bd52eee4dc6129f156c.tar.gz bun-c21be13be42f6ca9ec368bd52eee4dc6129f156c.tar.zst bun-c21be13be42f6ca9ec368bd52eee4dc6129f156c.zip |
tweak github actions (#6195)
* Discord comments
* better
* better
* actions
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to '.github/workflows/bun-mac-aarch64.yml')
-rw-r--r-- | .github/workflows/bun-mac-aarch64.yml | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/.github/workflows/bun-mac-aarch64.yml b/.github/workflows/bun-mac-aarch64.yml index 4bc4d1494..da31dec54 100644 --- a/.github/workflows/bun-mac-aarch64.yml +++ b/.github/workflows/bun-mac-aarch64.yml @@ -393,6 +393,24 @@ jobs: name: "Canary (${{github.sha}})" tag: "canary" artifacts: "${{runner.temp}}/release/${{matrix.tag}}.zip,${{runner.temp}}/release/${{matrix.tag}}-profile.zip" + - uses: sarisia/actions-status-discord@v1 + if: failure() && github.repository_owner == 'oven-sh' && github.event_name == 'pull_request' + with: + title: "" + webhook: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }} + noprefix: true + nocontext: true + description: | + ### [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pull/${{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 }} @@ -420,8 +438,8 @@ jobs: with: name: ${{matrix.tag}} path: ${{runner.temp}}/release - - id: install - name: Install + - id: install-bun + name: Install Bun run: | cd ${{runner.temp}}/release unzip ${{matrix.tag}}.zip @@ -429,6 +447,12 @@ jobs: chmod +x bun pwd >> $GITHUB_PATH ./bun --version + - id: install + name: Install dependencies + run: | + bun install --verbose + bun install --cwd=test --verbose + bun install --cwd=packages/bun-internal-test --verbose - id: test name: Test (node runner) env: @@ -437,10 +461,23 @@ jobs: TLS_POSTGRES_DATABASE_URL: ${{ secrets.TLS_POSTGRES_DATABASE_URL }} # if: ${{github.event.inputs.use_bun == 'false'}} run: | - bun install - bun install --cwd test - bun install --cwd packages/bun-internal-test node packages/bun-internal-test/src/runner.node.mjs || true + - uses: sarisia/actions-status-discord@v1 + if: always() && steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request' + with: + title: "" + webhook: ${{ secrets.DISCORD_WEBHOOK }} + status: "failure" + noprefix: true + nocontext: true + description: | + ### ❌ [${{github.event.pull_request.title}}](https://github.com/oven-sh/bun/pull/${{github.event.number}}) + + @${{ 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}})** - name: Comment on PR if: steps.test.outputs.failing_tests != '' && github.event_name == 'pull_request' uses: thollander/actions-comment-pull-request@v2 |