Skip to content

Commit

Permalink
Merge branch 'main' into EVEREST-953-backups-and-PITR-dbwizard-combining
Browse files Browse the repository at this point in the history
  • Loading branch information
solovevayaroslavna authored May 17, 2024
2 parents 6394b21 + 1d7e190 commit 71dd08e
Show file tree
Hide file tree
Showing 9 changed files with 316 additions and 301 deletions.
146 changes: 146 additions & 0 deletions .github/actions/fe-e2e/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
---
name: FE E2E Tests
inputs:
BACKUP_LOCATION_BUCKET_NAME:
type: string
BACKUP_LOCATION_ACCESS_KEY:
type: string
BACKUP_LOCATION_SECRET_KEY:
type: string
BACKUP_LOCATION_REGION:
type: string
BACKUP_LOCATION_URL:
type: string

runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Use Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
cache-dependency-path: ui/pnpm-lock.yaml

- name: Set up Helm
uses: azure/setup-helm@v4

- name: Set up Go release
uses: percona-platform/setup-go@v4
with:
go-version: 1.22.x

- name: Set GO_VERSION environment variable
shell: bash
run: |
go version
echo "GO_VERSION=$(go version)" >> $GITHUB_ENV
- name: Create KIND cluster
uses: helm/[email protected]

- name: Add Helm Percona repository
shell: bash
run: |
helm repo add percona https://percona.github.io/percona-helm-charts/
- name: Install Helm PMM chart
shell: bash
run: |
helm install pmm --set secret.pmm_password='admin',service.type=ClusterIP percona/pmm
- name: Echo PMM credentials
shell: bash
run: |
url=$(kubectl get svc/monitoring-service -o json | jq -r '.spec.clusterIP')
echo -n "MONITORING_URL=http://$url" >> $GITHUB_ENV
- name: Run Provisioning
shell: bash
run: |
make build-cli
./bin/everestctl install -v \
--version 0.0.0 \
--version-metadata-url https://check-dev.percona.com \
--operator.mongodb \
--operator.postgresql \
--operator.xtradb-cluster \
--skip-wizard \
--namespaces everest-ui
- name: Adding psmdb namespace
shell: bash
run: |
./bin/everestctl install -v \
--version 0.0.0 \
--version-metadata-url https://check-dev.percona.com \
--operator.mongodb \
--operator.postgresql=false \
--operator.xtradb-cluster=false \
--skip-wizard \
--namespaces psmdb-only
- name: Adding pxc namespace
shell: bash
run: |
./bin/everestctl install -v \
--version 0.0.0 \
--version-metadata-url https://check-dev.percona.com \
--operator.mongodb=false \
--operator.postgresql=false \
--operator.xtradb-cluster \
--skip-wizard \
--namespaces pxc-only
- name: Adding pg namespace
shell: bash
run: |
./bin/everestctl install -v \
--version 0.0.0 \
--version-metadata-url https://check-dev.percona.com \
--operator.mongodb=false \
--operator.postgresql \
--operator.xtradb-cluster=false \
--skip-wizard \
--namespaces pg-only
- name: Change token
shell: bash
run: |
echo "EVEREST_K8_TOKEN=$(./bin/everestctl token reset --json | jq .token -r)" >> $GITHUB_ENV
- name: Expose Everest API Server
shell: bash
run: |
kubectl port-forward -n everest-system deployment/percona-everest 8080:8080 &
- name: Run Everest
shell: bash
run: |
cd ui
make init
pnpm --filter "@percona/everest" dev &
- name: Install Chromium for Playwright
shell: bash
run: |
cd ui/apps/everest
npx playwright install chromium
- name: Run integration tests
shell: bash
env:
EVEREST_LOCATION_BUCKET_NAME: '${{ inputs.BACKUP_LOCATION_BUCKET_NAME }}'
EVEREST_LOCATION_ACCESS_KEY: '${{ inputs.BACKUP_LOCATION_ACCESS_KEY }}'
EVEREST_LOCATION_SECRET_KEY: '${{ inputs.BACKUP_LOCATION_SECRET_KEY }}'
EVEREST_LOCATION_REGION: '${{ inputs.BACKUP_LOCATION_REGION }}'
EVEREST_LOCATION_URL: '${{ inputs.BACKUP_LOCATION_URL }}'
MONITORING_USER: 'admin'
MONITORING_PASSWORD: 'admin'
run: |
cd ui
pnpm --filter "@percona/everest" e2e
Loading

0 comments on commit 71dd08e

Please sign in to comment.