feat: Install busola on k3d and run tests against it #1234
Workflow file for this run
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: PR Kyma Dashboard Smoke Tests Stage | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened, ready_for_review] | |
paths: | |
- ".github/workflows/pull-smoke-test-stage.yml" | |
- "resources/**" | |
- "tests/kyma/**" | |
- "nginx/**" | |
- "src/**" | |
- "kyma/**" | |
- "Dockerfile*" | |
jobs: | |
run-smoke-test-stage: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
steps: | |
- uses: gardenlinux/workflow-telemetry-action@v2 | |
with: | |
comment_on_pr: false | |
- uses: actions/checkout@v4 | |
# - uses: ./.github/actions/rebase | |
- name: Install k3d | |
env: | |
K3D_URL: https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | |
run: curl --silent --fail $K3D_URL | bash | |
- name: Setup Kyma | |
run: | | |
./.github/scripts/setup-kyma.sh | tee kyma-alpha-deploy.log | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup Busola | |
shell: bash | |
run: | | |
./.github/scripts/setup-busola.sh | tee busola-build.log | |
env: | |
ENV: stage | |
- name: Run tests | |
shell: bash | |
run: | | |
k3d kubeconfig get kyma > tests/integration/fixtures/kubeconfig.yaml | |
export CYPRESS_DOMAIN=http://localhost:3001 | |
cd tests/integration | |
npm ci && npm run "test:smoke-extensions" | |
- name: Uploads artifacts | |
uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: cypress-${{ github.job }} | |
path: tests/cypress/ | |
retention-days: 90 | |
- name: Upload Kyma Dashboard logs | |
uses: actions/upload-artifact@v4 | |
if: ${{ always() }} | |
with: | |
name: kyma-dashboard-logs-${{ github.job }} | |
path: | | |
kyma-alpha-deploy.log | |
busola-build.log | |
retention-days: 90 |