E2E #163
This file contains hidden or 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: E2E | |
| on: | |
| schedule: | |
| - cron: '0 2 * * 1-5' | |
| workflow_dispatch: | |
| inputs: | |
| chart: | |
| type: choice | |
| description: Chart Name | |
| required: true | |
| options: | |
| - greptimedb-cluster | |
| - greptimedb-standalone | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'GreptimeTeam/helm-charts' }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Helm | |
| uses: azure/setup-helm@v3 | |
| with: | |
| version: v3.12.1 | |
| - name: Create kind cluster | |
| uses: helm/kind-action@v1 | |
| with: | |
| wait: 120s | |
| version: v0.29.0 | |
| kubectl_version: v1.32.0 | |
| node_image: kindest/node:v1.32.0 | |
| - name: Deploy greptimedb-cluster | |
| if: ${{ github.event_name == 'schedule' || github.event.inputs.chart == 'greptimedb-cluster' }} | |
| shell: bash | |
| run: | | |
| make e2e-greptimedb-cluster | |
| continue-on-error: true | |
| - name: Deploy greptimedb-standalone | |
| if: ${{ github.event_name == 'schedule' || github.event.inputs.chart == 'greptimedb-standalone' }} | |
| shell: bash | |
| run: | | |
| make e2e-greptimedb-standalone | |
| continue-on-error: true | |
| - name: Notify Slack | |
| if: ${{ failure() }} | |
| uses: slackapi/[email protected] | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| with: | |
| payload: | | |
| {"text": "helm-charts e2e failed. Please check: https://github.com/GreptimeTeam/helm-charts/actions/workflows/e2e.yaml"} |