UI Tests Periodic #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: UI Tests Periodic | |
on: | |
schedule: | |
- cron: '0 5 * * 1' # run every Monday at 5:00 AM | |
jobs: | |
get-sha: | |
name: Get manager SHA | |
runs-on: ubuntu-latest | |
outputs: | |
sha: ${{ steps.get-sha.outputs.sha }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- id: get-sha | |
uses: ./.github/actions/get-latest-sha | |
run-ui-tests-periodic: | |
name: Run UI tests | |
runs-on: ubuntu-latest | |
needs: [ get-sha ] | |
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/api-gateway/main/api-gateway-manager:"${{ needs.get-sha.outputs.sha }}" | |
IMG=europe-docker.pkg.dev/kyma-project/prod/api-gateway/main/api-gateway-manager:"${{ needs.get-sha.outputs.sha }}" ./tests/ui/tests/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/tests/cypress/ | |
slack_failed_notification: | |
name: Slack Notification | |
runs-on: ubuntu-latest | |
if: ${{ failure() }} | |
needs: [run-ui-tests-periodic] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Notify | |
uses: ./.github/actions/slack-notification-failed-workflow | |
with: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |