e2e.yaml 3.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: E2E

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

27 28 29 30
env:
  SKIP_TEST: true
  SW_AGENT_JDK_VERSION: 8

31
jobs:
32 33
  FeatureGroup01:
    name: Feature
34
    runs-on: ubuntu-latest
35
    timeout-minutes: 90
36 37
    strategy:
      matrix:
38
        case: [auth, ssl]
39 40
    env:
      SW_SIMPLE_CASE: ${{ matrix.case }}
41
    steps:
42
      - uses: actions/checkout@v2
43
      - name: Checkout Submodules
44 45 46 47
        shell: bash
        run: |
          git submodule sync --recursive
          git -c protocol.version=2 submodule update --init --force --recursive --depth=1
48 49 50 51 52 53 54 55
      - name: Compile and Build
        run: make docker
      - name: Copy dist package
        run: cp -R dist test/e2e/
      - name: ${{ matrix.case }}
        run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.simple.SimpleE2E
      - uses: actions/upload-artifact@v1
        if: failure()
56 57
        with:
          name: logs
58
          path: logs
59

60
  FeatureGroup02:
61
    name: Lua Nginx
62
    runs-on: ubuntu-latest
63
    timeout-minutes: 90
64
    steps:
65 66 67 68 69 70
      - uses: actions/checkout@v2
      - name: checkout submodules
        shell: bash
        run: |
          git submodule sync --recursive
          git -c protocol.version=2 submodule update --init --force --recursive --depth=1
71 72 73 74
      - name: Compile and Build
        run: make docker
      - name: Copy dist package
        run: cp -R dist test/e2e/
75 76
      - name: Nginx Lua
        run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.LuaE2E
77 78
      - uses: actions/upload-artifact@v1
        if: failure()
79
        with:
80 81
          name: logs
          path: logs
82

83
  FeatureGroup03:
84
    name: Gateway
85
    runs-on: ubuntu-latest
86
    timeout-minutes: 90
87
    steps:
88 89 90 91 92 93
      - uses: actions/checkout@v2
      - name: checkout submodules
        shell: bash
        run: |
          git submodule sync --recursive
          git -c protocol.version=2 submodule update --init --force --recursive --depth=1
94 95 96 97 98 99 100 101 102 103
      - name: Compile and Build
        run: make docker
      - name: Copy dist package
        run: cp -R dist test/e2e/
      - name: Uninstrumnented gateway
        run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.GatewayE2E
      - uses: actions/upload-artifact@v1
        if: failure()
        with:
          name: logs
104
          path: logs