Skip to content

[CI] Update e2e-test.yaml #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: E2E Test
on:
pull_request:
types:
types:
- opened
- synchronize
- edited
workflow_dispatch:
inputs:
helm_chart_version:
description: 'Meshery Helm Chart Version'
required: false
default: 'v0.8.58' # Default value for the Helm chart version

jobs:
e2e-test:
Expand All @@ -21,14 +27,14 @@ jobs:
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm version
- name: Build and Install Plugin
run: |
run: |
./scripts/e2e.sh
env:
PROVIDER_TOKEN: ${{ secrets.PROVIDER_TOKEN }}
WORKFLOW_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
WORKFLOW_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Snapshot Meshery Helm Chart
run: |
helm plugin list
helm helm-kanvas-snapshot -f https://meshery.io/charts/meshery-v0.8.12.tgz --name meshery-chart


# Use the input variable with a fallback to the default value
HELM_CHART_VERSION=${{ github.event.inputs.helm_chart_version || 'v0.8.58' }}
helm helm-kanvas-snapshot -f https://meshery.io/charts/meshery-${HELM_CHART_VERSION}.tgz --name meshery-chart