generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (36 loc) · 1.13 KB
/
smoke-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: smoke test
on:
workflow_dispatch:
schedule:
- cron: 0 2 * * *
jobs:
smoke-tests:
runs-on: ubuntu-latest
steps:
- uses: sap/ai-sdk-js/.github/actions/setup@main
- run: pnpm smoke-tests create-deployment
- uses: vchrisb/setup-cf@v1
with:
api: ${{ vars.CF_API_URL }}
username: ${{ secrets.CF_USER }}
password: ${{ secrets.CF_PASSWORD }}
org: ${{ vars.CF_ORG }}
space: ${{ vars.CF_SPACE }}
- run: cf push
working-directory: tests/smoke-tests
- name: smoke test
run: pnpm test:smoke
- name: shutdown
if: always()
run: cf stop smoke-test-app
- name: 'Slack Notification'
if: failure()
uses: slackapi/[email protected]
with:
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
{
"username": "GitHub E2E Test Runner",
"text": "⚠️ Smoke Test Failed 🚭! Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-js/actions/runs/${{ github.run_id }}|here>"
}