Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
Signed-off-by: sayedppqq <[email protected]>
  • Loading branch information
sayedppqq committed May 22, 2024
1 parent a8e501a commit e071c50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 75 deletions.
41 changes: 9 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
name: dashboard-check
on:
push:
branches:
- "*.*"
pull_request:
branches:
- "master"
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
databases:
description: 'Databases'
folders:
description: 'Folders'
required: true
default: 'all'
type: string
kubedb-version:
kubedb_version:
description: 'KubeDB Version'
required: true
default: 'v2024.4.27' #needs to be dynamic
Expand All @@ -28,17 +22,17 @@ jobs:
name: Configure Inputs
runs-on: ubuntu-latest
outputs:
dbs: ${{ steps.defaulter.outputs.databases }}
kubedb : ${{ steps.defaulter.outputs.kubedb }}
folders: ${{ steps.defaulter.outputs.folders }}
kubedb_version : ${{ steps.defaulter.outputs.kubedb_version }}
steps:
- name: Defaulter
id: defaulter
env:
DATABASES: "policy"
KUBEDB_VERSION: "v2024.4.27"
FOLDERS: ${{ inputs.folders }}
KUBEDB_VERSION: ${{ inputs.kubedb_version }}
run: |
echo "databases=${DATABASES:-all}" >> $GITHUB_OUTPUT
echo "kubedb=${KUBEDB_VERSION:-v2024.4.27}" >> $GITHUB_OUTPUT
echo "folders=${FOLDERS:-all}" >> $GITHUB_OUTPUT
echo "kubedb_version=${KUBEDB_VERSION:-v2024.4.27}" >> $GITHUB_OUTPUT
test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -48,15 +42,6 @@ jobs:
matrix:
k8s: [v1.27.3]
steps:
- uses: actions/checkout@v4
with:
ref: ci

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true

- name: Set up Go 1.22
uses: actions/setup-go@v4
with:
Expand Down Expand Up @@ -141,7 +126,6 @@ jobs:
cd ..
git clone https://github.com/kubedb/cli.git
cd cli
git checkout check
go install ./...
- name: Install Prometheus
Expand All @@ -163,12 +147,6 @@ jobs:
sleep 5s
kubectl wait --for=condition=ready pod -l "app.kubernetes.io/name=panopticon,app.kubernetes.io/instance=panopticon" -n kubeops --timeout=10m
# - name: Install Falco UI Server
# run: |
# helm repo add appscode https://charts.appscode.com/stable/
# helm repo update
# helm upgrade -i falco-ui-server appscode/falco-ui-server -n kubeops --create-namespace --version=v2024.2.5

- name: Apply MetricsConfigurations
run: |
helm repo add appscode https://charts.appscode.com/stable/
Expand All @@ -180,7 +158,6 @@ jobs:
cd ..
git clone https://github.com/kubedb/samples.git
cd samples
git checkout old-dbs
- name: Check Dashboard Metrics
env:
Expand Down
43 changes: 0 additions & 43 deletions hack/scripts/test.sh

This file was deleted.

0 comments on commit e071c50

Please sign in to comment.