Skip to content

Commit

Permalink
Merge pull request #124 from chengxiangdong/e2e_ci
Browse files Browse the repository at this point in the history
add E2E test workflow
  • Loading branch information
k8s-ci-robot committed Nov 8, 2022
2 parents 7339b4b + a3c8e63 commit 1eaf8dd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,28 @@ jobs:
go-version: 1.15.x
- name: make test
run: make test
e2e:
name: e2e test
needs: build
runs-on: self-hosted
strategy:
max-parallel: 1
steps:
- name: checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v3
with:
go-version: 1.15.x
- name: run e2e
run: |
export ARTIFACTS_PATH=${{ github.workspace }}/e2e-logs
sh hack/run-e2e.sh
- name: upload logs
if: always()
uses: actions/upload-artifact@v3
with:
name: e2e_log
path: ${{ github.workspace }}/e2e-logs/
4 changes: 2 additions & 2 deletions hack/pre-run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail

if [[ "${HC_ACCESS_KEY}" = "" ]] || [[ "${HC_SECRET_KEY}" = "" ]]; then
echo "HC_ACCESS_KEY and HC_SECRET_KEY can not be empty, please set it"
exit 1
fi
set -o nounset

export REGISTRY_SERVER_ADDRESS=swr.ap-southeast-1.myhuaweicloud.com
export VERSION=`git rev-parse --short HEAD`
export VERSION=`echo $RANDOM`

echo -e "\nBuild images"
# todo: Maybe we need load the image to target cluster node.
Expand Down

0 comments on commit 1eaf8dd

Please sign in to comment.