Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mock fvm server on ci #3658

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 24 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ jobs:
os: [ubuntu-latest]
cluster_version: [stable, dev]
cli_version: [stable, dev]
test: [fluvio,smdk,cdk,fvm]
test: [fvm]
# no need to test stable to stable
exclude:
- cluster_version: stable
Expand Down Expand Up @@ -1061,24 +1061,29 @@ jobs:
run: make CDK_BIN=~/bin/cdk cli-cdk-smoke

# test fvm
# - name: Download artifact - fvm
# if: matrix.test == 'fvm'
# uses: actions/download-artifact@v3
# with:
# name: fvm-x86_64-unknown-linux-musl
# path: ~/bin

# - name: mark fvm
# if: matrix.test == 'fvm'
# run: |
# chmod +x ~/bin/fvm
# echo "~/bin" >> $GITHUB_PATH

# - name: Run FVM smoke tests
# if: matrix.test == 'fvm'
# timeout-minutes: 20
# run: |
# make FVM_BIN=~/bin/fvm HUB_REGISTRY_URL="https://hub-dev.infinyon.cloud" cli-fvm-smoke
- name: Download artifact - fvm
if: matrix.test == 'fvm'
uses: actions/download-artifact@v3
with:
name: fvm-x86_64-unknown-linux-musl
path: ~/bin

- name: mark fvm
if: matrix.test == 'fvm'
run: |
chmod +x ~/bin/fvm
echo "~/bin" >> $GITHUB_PATH

- name: Run FVM Mock Server
if: matrix.test == 'fvm'
run: |
cargo run --bin hub-fvm &

- name: Run FVM smoke tests
if: matrix.test == 'fvm'
timeout-minutes: 20
run: |
make FVM_BIN=~/bin/fvm HUB_REGISTRY_URL="https://localhost:9000" cli-fvm-smoke

- name: Run diagnostics
if: ${{ !success() }}
Expand Down
Loading