Skip to content
Snippets Groups Projects
Unverified Commit ec2a2591 authored by ChengTie(鐵手)'s avatar ChengTie(鐵手) Committed by GitHub
Browse files

Merge pull request #1012 from zouyx/feature/fixIntegrationTest

Fix: integration test in Github action
parents 6c989b9d 882930ca
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ jobs: ...@@ -71,7 +71,7 @@ jobs:
- name: Integrate Test - name: Integrate Test
run: | run: |
chmod +x integrate_test.sh && ./integrate_test.sh chmod +x integrate_test.sh && ./integrate_test.sh ${{github.event.pull_request.head.repo.full_name}} ${{github.event.pull_request.head.sha}}
- name: Post Coverage - name: Post Coverage
run: bash <(curl -s https://codecov.io/bash) run: bash <(curl -s https://codecov.io/bash)
......
...@@ -26,12 +26,12 @@ ROOT_DIR=$(pwd) ...@@ -26,12 +26,12 @@ ROOT_DIR=$(pwd)
echo "integrate-test root work-space -> ${ROOT_DIR}" echo "integrate-test root work-space -> ${ROOT_DIR}"
# show all travis-env # show all travis-env
echo "travis current commit id -> ${TRAVIS_COMMIT}" echo "travis current commit id -> $2"
echo "travis pull request -> ${TRAVIS_PULL_REQUEST}" echo "travis pull request branch -> ${GITHUB_REF}"
echo "travis pull request branch -> ${TRAVIS_PULL_REQUEST_BRANCH}" echo "travis pull request slug -> ${GITHUB_REPOSITORY}"
echo "travis pull request slug -> ${TRAVIS_PULL_REQUEST_SLUG}" echo "travis pull request repo slug -> ${GITHUB_REPOSITORY}"
echo "travis pull request sha -> ${TRAVIS_PULL_REQUEST_SHA}" echo "travis pull request actor -> ${GITHUB_ACTOR}"
echo "travis pull request repo slug -> ${TRAVIS_REPO_SLUG}" echo "travis pull request repo param -> $1"
# #start etcd registry insecure listen in [:]:2379 # #start etcd registry insecure listen in [:]:2379
...@@ -53,13 +53,13 @@ echo "zookeeper listen in [:]2181" ...@@ -53,13 +53,13 @@ echo "zookeeper listen in [:]2181"
# build go-server image # build go-server image
cd ./test/integrate/dubbo/go-server cd ./test/integrate/dubbo/go-server
docker build . -t ci-provider --build-arg PR_ORIGIN_REPO=${TRAVIS_PULL_REQUEST_SLUG} --build-arg PR_ORIGIN_COMMITID=${TRAVIS_PULL_REQUEST_SHA} docker build . -t ci-provider --build-arg PR_ORIGIN_REPO=$1 --build-arg PR_ORIGIN_COMMITID=$2
cd ${ROOT_DIR} cd ${ROOT_DIR}
docker run -d --network host ci-provider docker run -d --network host ci-provider
# build go-client image # build go-client image
cd ./test/integrate/dubbo/go-client cd ./test/integrate/dubbo/go-client
docker build . -t ci-consumer --build-arg PR_ORIGIN_REPO=${TRAVIS_PULL_REQUEST_SLUG} --build-arg PR_ORIGIN_COMMITID=${TRAVIS_PULL_REQUEST_SHA} docker build . -t ci-consumer --build-arg PR_ORIGIN_REPO=$1 --build-arg PR_ORIGIN_COMMITID=$2
cd ${ROOT_DIR} cd ${ROOT_DIR}
# run provider # run provider
# check consumer status # check consumer status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment