-
Notifications
You must be signed in to change notification settings - Fork 25
54 lines (49 loc) · 1.64 KB
/
schedule-ui-tests-periodic.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: UI Tests Periodic
on:
schedule:
- cron: '0 5 * * 1' #run on schedule every Monday 5:00 AM
jobs:
build-image:
name: Build manager image
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: istio/main/istio-manager
dockerfile: Dockerfile
context: .
build-args: |
VERSION=${{ github.ref_name }}
tags: "${{ github.sha }}"
run-ui-tests-periodic:
name: Run UI tests
runs-on: ubuntu-latest
needs: [ build-image ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run tests
run: |
sudo echo "127.0.0.1 local.kyma.dev" | sudo tee -a /etc/hosts
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | sudo bash
docker pull europe-docker.pkg.dev/kyma-project/prod/istio/main/istio-manager:"${{github.sha}}"
IMG=europe-docker.pkg.dev/kyma-project/prod/istio/main/istio-manager:"${{github.sha}}" ./tests/ui/scripts/k3d-ci-kyma-dashboard-integration.sh stage
- uses: actions/upload-artifact@v4
if: always()
name: Export Cypress output
with:
name: cypress
path: tests/ui/cypress/
slack_failed_notification:
name: Slack Notification
runs-on: ubuntu-latest
if: ${{ failure() }}
needs: [run-ui-tests-periodic]
steps:
- uses: actions/checkout@v4
- name: Notify
uses: ./.github/actions/slack-notification-failed-workflow
with:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}