| # |
| # 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: 'Run E2E Test' |
| description: 'Common steps when running an E2E Test' |
| inputs: |
| test_class: |
| description: 'The e2e test class name' |
| required: true |
| runs: |
| using: "composite" |
| steps: |
| - 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- |
| - name: Check License |
| uses: apache/skywalking-eyes@a63f4afcc287dfb3727ecc45a4afc55a5e69c15f |
| - name: Build Docker Image |
| shell: bash |
| env: |
| SKIP_TEST: "true" |
| run: | |
| echo "::group::Build Docker Image" |
| # Retry one more time due to frequent "maven connection reset" |
| make docker || make docker |
| echo "::endgroup::" |
| - name: Run E2E Test |
| shell: bash |
| run: | |
| echo "::group::Run E2E Test ${{ inputs.test_class }}" |
| ./mvnw --batch-mode -f test/e2e/pom.xml -am -DfailIfNoTests=false verify -Dit.test=${{ inputs.test_class }} |
| echo "::endgroup::" |