e2e.yaml 3.0 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
env:
  SKIP_TEST: true
  SW_AGENT_JDK_VERSION: 8
30
  CODECOV_TOKEN: d2065307-8f01-4637-9715-2781ef096db7
31

32
jobs:
33 34
  FeatureGroup01:
    name: Feature
35
    runs-on: ubuntu-latest
36
    timeout-minutes: 90
37 38
    strategy:
      matrix:
39
        case: [auth, ssl]
40 41
    env:
      SW_SIMPLE_CASE: ${{ matrix.case }}
42
    steps:
43
      - uses: actions/checkout@v2
44 45
        with:
          submodules: true
46 47 48 49 50 51
      - 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
52 53
      - name: Report Coverage
        run: bash -x tools/coverage/report.sh
54 55
      - 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
      - uses: actions/checkout@v2
66 67
        with:
          submodules: true
68 69 70 71
      - name: Compile and Build
        run: make docker
      - name: Copy dist package
        run: cp -R dist test/e2e/
72 73
      - name: Nginx Lua
        run: ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=org.apache.skywalking.e2e.LuaE2E
74 75
      - name: Report Coverage
        run: bash -x tools/coverage/report.sh
76 77
      - uses: actions/upload-artifact@v1
        if: failure()
78
        with:
79 80
          name: logs
          path: logs
81

82
  FeatureGroup03:
83
    name: Gateway
84
    runs-on: ubuntu-latest
85
    timeout-minutes: 90
86
    steps:
87
      - uses: actions/checkout@v2
88 89
        with:
          submodules: true
90 91 92 93 94 95
      - 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
96 97
      - name: Report Coverage
        run: bash -x tools/coverage/report.sh
98 99 100 101
      - uses: actions/upload-artifact@v1
        if: failure()
        with:
          name: logs
102
          path: logs