Skip to content

Commit

Permalink
fixed the mock test for the cli
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Oct 24, 2023
1 parent 91219d5 commit f72c827
Showing 1 changed file with 49 additions and 8 deletions.
57 changes: 49 additions & 8 deletions .github/workflows/test-mock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ on:
paths:
- 'scripts/**'
- 'cli/**'
- '.github/workflows/test-mock.yml'
- 'go.mod'
- 'go.sum'
branches: [ main ]
jobs:
civo:
# if: ${{ github.event.label.name == 'pr/lgtm' }}
binary:
if: ${{ github.event.label.name == 'pr/lgtm' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
env:
KSCTL_FAKE_FLAG_ENABLED: "1"
Expand All @@ -33,12 +34,52 @@ jobs:
- name: build ksctl
run: |
make install_linux
ksctl -h
ksctl version
- name: civo tests
- name: civo create
run: |
ksctl create civo -n demo -r LON1 --nodeSizeMP "g4s.kube.small" -v --approve
ksctl create ha-civo -n ha-demo --nodeSizeDS "fake.small" --nodeSizeLB "fake.small" --nodeSizeCP "fake.small" --nodeSizeWP "fake.small" -r LON1 -v --approve
- name: azure create
run: |
ksctl create azure -n demo -r fake --nodeSizeMP "fake" -v --approve
ksctl create ha-azure -n ha-demo --nodeSizeDS "fake" --nodeSizeLB "fake" --nodeSizeCP "fake" --nodeSizeWP "fake" -r fake -v --approve
- name: local create
run: |
ksctl create local -n demolocal -v --approve
- name: civo get
run: |
ksctl create civo -n demo -r LON1 -v --approve
ksctl switch -p civo -n demo -r LON1
ksctl create ha-civo -n demo -r FRA1 -v --approve
ksctl switch -p ha-civo -n demo -r FRA1
ksctl get -p civo
- name: azure get
run: |
ksctl get -p azure
- name: all
run: |
ksctl get
- name: civo switch
run: |
ksctl switch -p civo -n demo -r LON1
ksctl switch -p ha-civo -n ha-demo -r LON1
- name: azure switch
run: |
ksctl switch -p azure -n demo -r fake
ksctl switch -p ha-azure -n ha-demo -r fake
- name: civo delete
run: |
ksctl delete civo -n demo -r LON1 -v --approve
ksctl delete ha-civo -n ha-demo -r LON1 -v --approve
- name: azure delete
run: |
ksctl delete azure -n demo -r fake -v --approve
ksctl delete ha-azure -n ha-demo -r fake -v --approve
- name: local delete
run: |
ksctl delete local -n demolocal -v --approve

0 comments on commit f72c827

Please sign in to comment.