Skip to content

Commit d7dae86

Browse files
authored
ci: perform sample and example app tests on regression schedules (#2743)
1 parent 01a1d6f commit d7dae86

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/samples.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88
pull_request:
9+
schedule:
10+
- cron: "0 0 * * *"
11+
workflow_dispatch:
912

1013
jobs:
1114
examples:
@@ -71,3 +74,20 @@ jobs:
7174
- name: Compile sample
7275
working-directory: ./sample
7376
run: npx tsc
77+
notifications:
78+
name: Regression notifications
79+
runs-on: ubuntu-latest
80+
needs:
81+
- examples
82+
- samples
83+
if: ${{ !success() && github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch' }}
84+
steps:
85+
- name: Send notifications of failing tests
86+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
87+
with:
88+
errors: true
89+
webhook: ${{ secrets.SLACK_REGRESSION_FAILURES_WEBHOOK_URL }}
90+
webhook-type: webhook-trigger
91+
payload: |
92+
action_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
93+
repository: "${{ github.repository }}"

0 commit comments

Comments
 (0)