|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +name: Test |
| 18 | + |
| 19 | +on: |
| 20 | + pull_request: |
| 21 | + paths: |
| 22 | + - '.github/workflows/plugins-*.yaml' |
| 23 | + - 'apm-application-toolkit/**' |
| 24 | + - 'apm-commons/**' |
| 25 | + - 'apm-protocol/**' |
| 26 | + - 'apm-sniffer/**' |
| 27 | + - 'test/plugin/**' |
| 28 | + - '**/pom.xml' |
| 29 | + - '!**.md' |
| 30 | + |
| 31 | +concurrency: |
| 32 | + group: plugins-jdk25-1-${{ github.event.pull_request.number || github.ref }} |
| 33 | + cancel-in-progress: true |
| 34 | + |
| 35 | +jobs: |
| 36 | + build: |
| 37 | + name: Build |
| 38 | + runs-on: ubuntu-latest |
| 39 | + timeout-minutes: 30 |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@v2 |
| 42 | + with: |
| 43 | + submodules: true |
| 44 | + - name: Build local tomcat-curl image |
| 45 | + run: | |
| 46 | + docker build -t tomcat-curl:10.1.50-jdk25-temurin \ |
| 47 | + -f ./.github/workflows/Dockerfile-tomcat-jdk25-withCurl . |
| 48 | + - name: Build |
| 49 | + uses: ./.github/actions/build |
| 50 | + with: |
| 51 | + base_image_java: eclipse-temurin:25-jdk |
| 52 | + base_image_tomcat: tomcat-curl:10.1.50-jdk25-temurin |
| 53 | + |
| 54 | + test: |
| 55 | + needs: [ build ] |
| 56 | + name: ${{ matrix.case }}-jdk25 |
| 57 | + runs-on: ubuntu-latest |
| 58 | + timeout-minutes: 90 |
| 59 | + strategy: |
| 60 | + matrix: |
| 61 | + case: |
| 62 | + - spring-6.x-scenario |
| 63 | + steps: |
| 64 | + - uses: actions/checkout@v2 |
| 65 | + with: |
| 66 | + submodules: true |
| 67 | + - uses: actions/setup-java@v2 |
| 68 | + with: |
| 69 | + distribution: 'temurin' |
| 70 | + java-version: '25' |
| 71 | + - name: Run Test |
| 72 | + uses: ./.github/actions/run |
| 73 | + with: |
| 74 | + test_case: ${{ matrix.case }} |
0 commit comments