istio-mixer-ci.yaml 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: istio-mixer-ci

19 20 21 22 23 24 25 26
on:
  pull_request:
  push:
    branches:
      - master
    tags:
      - 'v*'

27
env:
28
  SCRIPTS_DIR: ./test/e2e-mesh/e2e-istio/scripts
29
  LOG_DIR: /tmp/skywalking
30
  INSTALL_SCRIPTS_DIR: ./install/deploy
31 32 33 34
jobs:
  build:
    runs-on: ubuntu-16.04
    steps:
35
      - uses: actions/checkout@v2
36 37
        with:
          submodules: true
38 39 40 41 42 43 44
      - name: Cache local Maven repository
        uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
          restore-keys: |
            ${{ runner.os }}-maven-
45 46
      - name: Prepare enviroment
        run: |
47
          bash ${SCRIPTS_DIR}/pre.sh
48
          mkdir -p ${LOG_DIR}
49 50
      - name: Compile all and Build docker image
        run: bash ${SCRIPTS_DIR}/compile_build.sh
51 52 53 54 55 56
      - name: Start minikube
        run: bash ${SCRIPTS_DIR}/minikube.sh start > ${LOG_DIR}/minikube-start-log.txt 2>&1 &
      - name: Wating minikube ready
        run: bash ${SCRIPTS_DIR}/minikube.sh wait
      - name: Setup tunnel
        run: minikube tunnel --log_dir=${LOG_DIR} &
57 58 59 60 61 62
      - name: Istio install
        run: bash ${INSTALL_SCRIPTS_DIR}/istio-deploy.sh
      - name: SW And ES install
        run: bash ${INSTALL_SCRIPTS_DIR}/skywalking-deploy.sh
      - name: Bookinfo demo install
        run: bash ${INSTALL_SCRIPTS_DIR}/demo-deploy.sh
63
      - uses: actions/upload-artifact@v1.0.0
64
        if: always()
65 66 67
        with:
          name: logs
          path: /tmp/skywalking