Skip to content

Commit

Permalink
ci echo test
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Nov 20, 2023
1 parent 1c196ed commit 7432f7f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,26 @@ jobs:
- name: run build
run: cmake --build build --config ${{ matrix.BUILD_TYPE }}

- name: install sfctl
run: |
pip3 install -I sfctl==11.1.0
echo "~/.local/bin" >> $GITHUB_PATH
- name: test sfctl
run: sfctl --version

- name: start sf
run: sudo /opt/microsoft/sdk/servicefabric/common/clustersetup/devclustersetup.sh

- name: test cluster health
run: sfctl cluster health

# - uses: actions/checkout@v2

# - name: apt-get
# run: sudo apt-get install apt-transport-https curl lsb-release wget gnupg2 software-properties-common debconf-utils -y

# - name: Install rust stable
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
- name: run echo app
run: |
sfctl application upload --path build/echoapp_root
sfctl application provision --application-type-build-path echoapp_root
sfctl application create --app-name fabric:/EchoApp --app-type EchoApp --app-version 0.0.1
- name: resolve service
run: |
sfctl service resolve --service-id EchoApp/EchoAppService
3 changes: 3 additions & 0 deletions scripts/echomain2_ctl.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# docker run --name sftestcluster -d -v /var/run/docker.sock:/var/run/docker.sock -p 19080:19080 -p 19000:19000 -p 25100-25200:25100-25200 mcr.microsoft.com/service-fabric/onebox:u18

sfctl application upload --path build/echoapp_root

sfctl application provision --application-type-build-path echoapp_root

sfctl application create --app-name fabric:/EchoApp --app-type EchoApp --app-version 0.0.1

sfctl service resolve --service-id EchoApp/EchoAppService

sfctl application delete --application-id EchoApp

Expand Down

0 comments on commit 7432f7f

Please sign in to comment.