43 lines (39 loc) · 1.28 KB
/
ui-tests.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
# Jobs defined in this file are responsible for things that do not require container image
# but still relevant to the codebase such as unit tests, linting etc
name: UI Tests
on:
pull_request:
types: [ synchronize, opened, reopened, ready_for_review ]
paths:
- 'config/ui-extensions/**'
- 'config/crd/**'
- 'tests/ui/**'
- '.github/workflows/ui-tests.yaml'
branches:
- "main"
- 'release-**'
permissions:
contents: read
jobs:
run-ui-tests:
name: Run UI tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
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
IMG=europe-docker.pkg.dev/kyma-project/dev/api-gateway-manager:PR-${{ github.event.number }} ./tests/ui/tests/scripts/k3d-ci-kyma-dashboard-integration.sh
- uses: actions/upload-artifact@v4
if: always()
name: Export Cypress output
with:
name: cypress
path: tests/ui/tests/cypress/