Skip to content

Commit

Permalink
fix: ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
zemyblue committed Oct 6, 2023
1 parent 0baa374 commit c174f40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-smart-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main

env:
TEST_DOCKER_IMAGE: finschianode:smartcontractci
TEST_DOCKER_IMAGE: finschianode-proxy:smartcontractci

jobs:
cleanup-runs:
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Download build
uses: actions/download-artifact@v3
with:
name: fnsad
name: fnsad-proxy
path: ./build
- name: Build install
run: make install
Expand All @@ -103,14 +103,14 @@ jobs:
- name: Start local node
id: start
run: |
fnsad start &
fnsad-proxy start &
sleep 1
- name: CI test
run: bash ./ci_test/queue_ci.sh
shell: bash
- name: Stop local node
if: ${{ always() && steps.start.conclusion == 'success' }}
run: kill $(ps -ef | grep "fnsad start" | grep -v grep | awk '{print $2}')
run: kill $(ps -ef | grep "fnsad-proxy start" | grep -v grep | awk '{print $2}')

build-finschia-docker-image:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
docker image ls -a
- name: Set configure file
run: |
export FNSAD="docker run -i --rm -p 26656:26656 -p 26657:26657 -v ${pwd}/.finschia:/root/.finschia ${{ env.TEST_DOCKER_IMAGE }} fnsad"
export FNSAD="docker run -i --rm -p 26656:26656 -p 26657:26657 -v ${pwd}/.finschia:/root/.finschia ${{ env.TEST_DOCKER_IMAGE }} fnsad-proxy"
./init_single.sh
shell: bash
# sleep 5 seconds to wait for finschia to start up
Expand All @@ -173,7 +173,7 @@ jobs:
-v ${pwd}/.finschia:/root/.finschia \
-v $(pwd)/ci_test:/root/ci_test \
-v $(pwd)/contracts:/root/contracts \
${{ env.TEST_DOCKER_IMAGE }} fnsad start)
${{ env.TEST_DOCKER_IMAGE }} fnsad-proxy start)
echo "container_id=$container_id" >> "$GITHUB_OUTPUT"
sleep 5
- name: CI test
Expand Down
2 changes: 2 additions & 0 deletions cli_test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ package clitest

import (
"encoding/base64"
"encoding/hex"
"errors"
"fmt"
"os"
"path"
"path/filepath"
"strconv"
"strings"
Expand Down

0 comments on commit c174f40

Please sign in to comment.