From 6f1cb91c16d15c513e81111f71114614ab8df79c Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Mon, 14 Nov 2022 11:39:45 -0600 Subject: [PATCH] chore: sync files --- .github/workflows/failureNotifications.yml | 8 +++++--- .github/workflows/test.yml | 10 ++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/failureNotifications.yml b/.github/workflows/failureNotifications.yml index 515471b..3f7c0d4 100644 --- a/.github/workflows/failureNotifications.yml +++ b/.github/workflows/failureNotifications.yml @@ -21,22 +21,24 @@ jobs: SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK with: + # Payload can be visually tested here: https://app.slack.com/block-kit-builder/T01GST6QY0G#%7B%22blocks%22:%5B%5D%7D + # Only copy over the "blocks" array to the Block Kit Builder payload: | { - "text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}", + "text": "Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }}", "blocks": [ { "type": "header", "text": { "type": "plain_text", - "text": ":bh-alert: `${{ github.event.workflow_run.name }}` failed: ${{ github.event.workflow_run.repository.name }} :bh-alert:" + "text": ":bh-alert: Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }} :bh-alert:" } }, { "type": "section", "text": { "type": "mrkdwn", - "text": "Repo: ${{ github.event.workflow_run.repository.html_url }}\nWorkflow name: `${{ github.event.workflow_run.name }}`\nJob url: ${{ github.event.workflow_run.html_url }}" + "text": "*Repo:* ${{ github.event.workflow_run.repository.html_url }}\n*Workflow name:* `${{ github.event.workflow_run.name }}`\n*Job url:* ${{ github.event.workflow_run.html_url }}" } } ] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52d3c57..54e8193 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,5 +5,11 @@ on: workflow_dispatch: jobs: - unit-tests: - uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main + yarn-lockfile-check: + uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main + linux-unit-tests: + needs: yarn-lockfile-check + uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main + windows-unit-tests: + needs: yarn-lockfile-check + uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main